The assistant stops the conversation and throws an error. #2796
wupengfei0904
started this conversation in
General
Replies: 2 comments 3 replies
-
I'm looking into this |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can't reproduce, what is the latest commit you are on? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using the assistant, if I stop the conversation while running the code interpreter and then send a new message to the assistant, it throws an error.
{"code":null,"error":{"code":null,"message":"Can't add messages to thread_lHOkfjbDzSYK44KCL6qwC0HB while a run run_r94CF1FEVmqjtCbFjARaEg32 is active.","param":null,"type":"invalid_request_error"},"headers":{"alt-svc":"h3=":443"; ma=86400","cf-cache-status":"DYNAMIC","cf-ray":"886883d5c8b17ec6-LAX","connection":"keep-alive","content-length":"217","content-type":"application/json","date":"Mon, 20 May 2024 01:22:19 GMT","openai-organization":"user-2jgtojzsiwlhjiltfamvjsoa","openai-processing-ms":"28","openai-version":"2020-10-01","server":"cloudflare","set-cookie":"__cf_bm=dyUxMIAbCgJV3tj4PJyM513xVrzqcwiNpd0YiNnTOfM-1716168139-1.0.1.1-zzkq0WFViVBzj12WRxkkocsrUQtcDhAhJ7NpvECOVLnk4u.fcqeMBphRt5rqnXWSagUurKVaiElOc0FMayuKiQ; path=/; expires=Mon, 20-May-24 01:52:19 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None, _cfuvid=OI9EflHc8Wel.GRPDnoejBN5St9dlC7ggrZGNjgi4wQ-1716168139241-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None","strict-transport-security":"max-age=15724800; includeSubDomains","x-request-id":"req_0a12e38eb46d453f33c4298f0173e898"},"level":"error","message":"[/assistants/chat/] 400 Can't add messages to thread_lHOkfjbDzSYK44KCL6qwC0HB while a run run_r94CF1FEVmqjtCbFjARaEg32 is active.","param":null,"request_id":"req_0a12e38eb46d453f33c4298f0173e898","stack":"Error: 400 Can't add messages to thread_lHOkfjbDzSYK44KCL6qwC0HB while a run run_r94CF1FEVmqjtCbFjARaEg32 is active.\n at APIError.generate (/app/api/node_modules/openai/error.js:45:20)\n at OpenAI.makeStatusError (/app/api/node_modules/openai/core.js:263:33)\n at OpenAI.makeRequest (/app/api/node_modules/openai/core.js:306:30)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async initThread (/app/api/server/services/Threads/manage.js:31:21)\n at async initializeThread (/app/api/server/controllers/assistants/chatV2.js:404:22)\n at async Promise.all (index 0)\n at async chatV2 (/app/api/server/controllers/assistants/chatV2.js:451:5)","status":400,"type":"invalid_request_error"}
Beta Was this translation helpful? Give feedback.
All reactions