As initially reported here - and requested by @vb , I open a new thread for an issue with constantly failing runs that had worked with an Assistant until last weekend.
Now, within 3 to 5 sec, constantly (without exceptions!) a server error is returned - like:
{
"id": "run_2upIUIw4aPXmooG1zukz0Jsl",
"object": "thread.run",
"created_at": 1731924886,
"assistant_id": "asst_O2DO4Mt86W149U4C0o6TNMtU",
"thread_id": "thread_sVTzwtg1H4d7U023XkYc7leG",
"status": "failed",
"started_at": 1731924886,
"expires_at": null,
"cancelled_at": null,
"failed_at": 1731924888,
"completed_at": null,
"required_action": null,
"last_error": {
"code": "server_error",
"message": "Sorry, something went wrong."
},
"model": "gpt-4o-mini",
"instructions": "You are ...",
"tools": [
{
"type": "file_search",
"file_search": {
"ranking_options": {
"ranker": "default_2024_08_21",
"score_threshold": 0.0
}
}
}
],
"tool_resources": {},
"metadata": {},
"temperature": 0.15,
"top_p": 1.0,
"max_completion_tokens": null,
"max_prompt_tokens": null,
"truncation_strategy": {
"type": "auto",
"last_messages": null
},
"incomplete_details": null,
"usage": {
"prompt_tokens": 1339,
"completion_tokens": 28,
"total_tokens": 1367,
"prompt_token_details": {
"cached_tokens": 0
}
},
"response_format": {
"type": "text"
},
"tool_choice": "auto",
"parallel_tool_calls": true
}
this happens after successfully proceeding as follows:
- https://api.openai.com/v1/threads
- POST
- https://api.openai.com/v1/threads/thread_sVTzwtg1H4d7U023XkYc7leG/messages
- POST
- https://api.openai.com/v1/threads/thread_sVTzwtg1H4d7U023XkYc7leG/runs
- POST
- initially responding WITHOUT error:
{
"id": "run_2upIUIw4aPXmooG1zukz0Jsl",
"object": "thread.run",
"created_at": 1731924886,
"assistant_id": "asst_O2DO4Mt86W149U4C0o6TNMtU",
"thread_id": "thread_sVTzwtg1H4d7U023XkYc7leG",
"status": "queued",
"started_at": null,
"expires_at": 1731925486,
"cancelled_at": null,
"failed_at": null,
"completed_at": null,
"required_action": null,
"last_error": null,
"model": "gpt-4o-mini",
"instructions": "You are ...",
"tools": [
{
"type": "file_search",
"file_search": {
"ranking_options": {
"ranker": "default_2024_08_21",
"score_threshold": 0.0
}
}
}
],
"tool_resources": {},
"metadata": {},
"temperature": 0.15,
"top_p": 1.0,
"max_completion_tokens": null,
"max_prompt_tokens": null,
"truncation_strategy": {
"type": "auto",
"last_messages": null
},
"incomplete_details": null,
"usage": null,
"response_format": {
"type": "text"
},
"tool_choice": "auto",
"parallel_tool_calls": true
}
then, after 2 times polling run status, the error like above is returned.
Working with same prompting in playground, with same assistant_id, the assistant provides a response.
But playground works with streaming ON, whilst my app does not (stream property not set)
Have already tried to set up a new assistant, but same behaviour.
THANK YOU for looking into it!