Skip to content

Enable timeout configuration#21

Merged
Fodoj merged 1 commit intomainfrom
extend-timeouts
Jun 27, 2025
Merged

Enable timeout configuration#21
Fodoj merged 1 commit intomainfrom
extend-timeouts

Conversation

@Fodoj
Copy link
Contributor

@Fodoj Fodoj commented Jun 27, 2025

Some endpoints like model responses can take random time to complete. While allowing to extend the timeout doesn't fix all of the issues, it does give a chance to avoid them from happening when using this resources.

I still had some timeouts though - when I run the tests with same prompt 10 times in parallel, 2 out of 10 timed out after 15 minutes, 1 took 8 minutes, and the rest finished in less than 3 minutes. Not sure if we can handle it better on the provider side. Doesn't happen with image generation or smaller prompts.

@Fodoj Fodoj requested a review from pabloinigo June 27, 2025 16:47
@Fodoj Fodoj self-assigned this Jun 27, 2025
config := client.ClientConfig{
APIKey: c.ProjectAPIKey,
OrganizationID: c.OpenAIClient.OrganizationID,
APIURL: c.OpenAIClient.APIURL,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so that we can allow overriding it later on. Theoretically we can then use the provider against Azure AI or even Grok and similar.

@Fodoj Fodoj merged commit 2f38c3d into main Jun 27, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant