diff --git a/cryptoai/routes/analysis.py b/cryptoai/routes/analysis.py index e5bfe68..f9240fe 100644 --- a/cryptoai/routes/analysis.py +++ b/cryptoai/routes/analysis.py @@ -65,6 +65,8 @@ async def chat(request: ChatRequest, 'Content-Type': 'application/json' } + get_db_manager().user_question_manager.save_user_question(current_user["id"],"chat-messages", request.message) + response = requests.post(url, headers=headers, json=payload, stream=True) # 如果响应不成功,返回错误 diff --git a/docker-compose.yml b/docker-compose.yml index 2c7d338..4a02abf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,7 +29,7 @@ services: cryptoai-api: build: . container_name: cryptoai-api - image: cryptoai-api:0.1.31 + image: cryptoai-api:0.1.32 restart: always ports: - "8000:8000"