[QUERY] ChatCompletionAsync Timeout / Internal server error
See original GitHub issueLibrary name and version
Azure.AI.OpenAI 1.0.0-beta.6
Query/Question
Hi, ChatCompletionAsync waits for minutes without answering.
The frequency increased with Azure Studio ChatGPT-35-turbo 0613 16K.
Could we give Timeout
to OpenAIClient init?
Sometimes, it gives “internal server error” after a few minutes.
Environment
No response
Issue Analytics
- State:
- Created 2 months ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Managing timeout when waiting for the response from chat ...
I tried to get chat completion (gpt-4) for a prompt that is expected to return a long reply: async function askGPT(messages) { const ......
Read more >Message "Async callback was not invoked within the 5000 ...
The timeout problem occurs when either the network is slow or many network calls are made using await . These scenarios exceed the...
Read more >Configuring timeout for ChatCompletion Python - API
I have tried setting this timeout and while it is accepted by OpenAI without error it does not seem to have an effect....
Read more >How to fix regular Timeout errors when using chatGPT3.5 ...
Hi, I have a Python V2 Function App that interacts with Azure OpenAI's chatGPT3.5 Turbo. To ensure that the max tokens aren't exceeded, ......
Read more >Create an Azure OpenAI, LangChain, ChromaDB, and ...
This article shows how to quickly build chat applications using Python and leveraging powerful technologies such as OpenAI ChatGPT models ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@fatihyildizhan You can use the workaround for now by using a custom policy to set a timeout on all requests as shown below.
You can use the below constructor:
<html> <body>And use the AddPolicy(HttpPipelinePolicy, HttpPipelinePosition) Method of the OpenAIClientOptions Class.
Note: The below sample is for the sdk for js. You can tweak it for sdk for net.
Hope this helps.
@fatihyildizhan Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update.