-
Notifications
You must be signed in to change notification settings - Fork 189
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
[Bug]: Getting an error "The operation was canceled" #2216
Comments
@mukeshmrajput - Could you please confirm if you are developing a Teams app and please share your sample repo link here? We are checking with the engineering team to determine where we can increase the timeout for Azure OpenAI calls. |
Thanks @Nivedipa-MSFT. Yes we're developing a Teams App which give the answers based on our own RAG/datasource of electronics parts. I can't share the repo but yes try to give sample code that we're trying. We're trying the suggestions that you provided too. Yes, let me know how we can increase the time out for Azure OpenAI calls Thanks, |
@Nivedipa-MSFT, do your team know how to increase the time out for Azure Open AI call. |
@mukeshmrajput - Apologies for the delay. We are still checking this with engineering team. We appreciate your patience and will inform you as soon as we have any updates. |
Language
C#
Version
latest
Description
Our use case is,
During above process, we're seeing "The operation was canceled" error in OpenAIModel.cs class in CompletePromptAsync method while calling Azure Open AI. We've noticed that status code 408 in the logs of Azure Open AI. So we tried to increase the time out in program.cs file "builder.Services.AddHttpClient("WebClient", client => client.Timeout = TimeSpan.FromMintutes(10))" but it's not working at all. Need help to see where we can increase the time out for Azure Open AI call.
Reproduction Steps
The text was updated successfully, but these errors were encountered: