|
|
|
@ -709,7 +709,8 @@ def fetch_and_parse_markdown(user_id: int, question: str) -> str: |
|
|
|
|
只提取最终完整的markdown内容(过滤流式中间片段) |
|
|
|
|
""" |
|
|
|
|
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://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}" |
|
|
|
|
|
|
|
|
|
all_markdowns: List[str] = [] |
|
|
|
|
final_content = "" # 存储最终完整内容 |
|
|
|
|