修改知识库地址为本地智能体

main
zc 1 month ago
parent ce956db021
commit 5b1718b4dc
  1. 2
      app/api/chat/ai/chat_service.py

@ -710,7 +710,7 @@ def fetch_and_parse_markdown(user_id: int, question: str) -> str:
"""
encoded_question = requests.utils.quote(question)
# url = f"http://cjy.aitto.net:45678/api/v3/user_share_chat_completions?random={user_id}&api_key=cjy-626e50140e934936b8c82a3be5f6dea3&app_code=f5b3d4ba-7e7a-11f0-9de7-00e04f309c26&user_input={encoded_question}"
url = f"http:/127.0.0.1:5679/api/v3/user_share_chat_completions?random={user_id}&api_key=cjy-626e50140e934936b8c82a3be5f6dea3&app_code=f5b3d4ba-7e7a-11f0-9de7-00e04f309c26&user_input={encoded_question}"
url = f"http://127.0.0.1:5679/api/v3/user_share_chat_completions?random={user_id}&api_key=cjy-626e50140e934936b8c82a3be5f6dea3&app_code=f5b3d4ba-7e7a-11f0-9de7-00e04f309c26&user_input={encoded_question}"
all_markdowns: List[str] = []
final_content = "" # 存储最终完整内容

Loading…
Cancel
Save