-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
与gpt对话示例,很久才返回结果,后台报错信息如下 #379
Comments
报错是和openai 建立连接出错,最后重试又成功了。 这个现象是必现吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
** 网络梯子部署OK的,容器内访问Openapi网址也没有问题的。详情日志见附件
[2024-03-07 22:29:53.307336] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:54.773729] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:55.310765] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:56.777467] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:57.104199] [ERROR process-9-140461729638080 bisheng.processing.base:32] - trace=None Error communicating with OpenAITraceback (most recent call last):
error.txt
[2024-03-07 22:29:57.218992] [DEBUG process-9-140461729638080 bisheng.api.v1.callback:287] - trace=None on_chain_start inputs={'input': '你是谁', 'history': ''}
Prompt after formatting:
The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.
Current conversation:
Human: 你是谁
AI:
[2024-03-07 22:29:57.227126] [DEBUG process-9-140461729638080 bisheng.api.v1.callback:306] - trace=None on_chat result=[[HumanMessage(content='The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI
does not know the answer to a question, it truthfully says it does not know.\n\nCurrent conversation:\n\nHuman: 你是谁\nAI:')]]
[2024-03-07 22:29:57.233682] [DEBUG process-9-140461729638080 openai.util:60] - trace=None message='Request to OpenAI API' method=post path=https://api.openai.com/v1/chat/completions
[2024-03-07 22:29:57.235616] [DEBUG process-9-140461729638080 openai.util:60] - trace=None api_version=None data='{"messages": [{"role": "user", "content": "The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context.
If the AI does not know the answer to a question, it truthfully says it does not know.\n\nCurrent conversation:\n\nHuman: \u4f60\u662f\u8c01\nAI:"}], "model": "gpt-3.5-turbo-16k-0613", "stream": true, "n": 1, "temperature": 0.7}' message='Post details'
[2024-03-07 22:29:57.240239] [DEBUG process-9-140461729638080 urllib3.util.retry:282] - trace=None Converted retries value: 2 -> Retry(total=2, connect=None, read=None, redirect=None, status=None)
[2024-03-07 22:29:57.244441] [DEBUG process-9-140461729638080 urllib3.connectionpool:1055] - trace=None Starting new HTTPS connection (1): api.openai.com:443
[2024-03-07 22:29:57.314024] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:58.424105] [DEBUG process-9-140461729638080 urllib3.connectionpool:549] - trace=None https://api.openai.com:443 "POST /v1/chat/completions HTTP/1.1" 200 None
[2024-03-07 22:29:58.427627] [DEBUG process-9-140461729638080 openai.util:60] - trace=None message='OpenAI API response' path=https://api.openai.com/v1/chat/completions processing_ms=239 request_id=req_f938ec6f8f35653fd74051e0f34e53bc response_code=200
[2024-03-07 22:29:58.781327] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:59.317093] [INFO process-9-140465245408128 bisheng.utils.threadpool:99] - trace=None async_wait_count=1
[2024-03-07 22:29:59.377328] [DEBUG process-9-140461729638080 bisheng.api.v1.callback:291] - trace=None on_chain_end outputs={'response': '我是一个AI助手,被称为GPT-3。我是由OpenAI开发的人工智能模型。我可以回答各种问题,提供信息和建议。请问有什么我可以帮助你的吗?'}
The text was updated successfully, but these errors were encountered: