feat: Allow setting OpenAI timeout from config#1819
Merged
yingjiehe-xyz merged 2 commits intoblock:mainfrom Mar 25, 2025
Merged
feat: Allow setting OpenAI timeout from config#1819yingjiehe-xyz merged 2 commits intoblock:mainfrom
yingjiehe-xyz merged 2 commits intoblock:mainfrom
Conversation
feat: Allow setting OpenAI timeout from config
yingjiehe-xyz
approved these changes
Mar 25, 2025
Contributor
|
run |
michaelneale
added a commit
that referenced
this pull request
Mar 26, 2025
* main: ui: turn on extensions at startup (#1861) ui: models dropdown (#1860) fix: cli empty line (#1856) feat: Allow setting OpenAI timeout from config (#1819) feat: add retry for google (#1854) feat(extensions): add Java/JDK support for MCP servers (#1816) feat: extract `StdioProcessError(msg)` to try to display (#1855) fix: show window bugfix (#1840) fix: append the attachment path to the existing text in the input prompt (#1842) docs: updated docs for smart approval mode (#1853) styles: chat scroll interaction (#1837) ui: add description field to modal (#1846) feat: use temp dir for extracting goose binary (#1838) ui: remove and update extensions (#1847) fix: disappearing user text when stopped (#1839)
ahau-square
pushed a commit
that referenced
this pull request
May 2, 2025
cbruyndoncx
pushed a commit
to cbruyndoncx/goose
that referenced
this pull request
Jul 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OpenAI Timeout Configuration
This update introduces a configurable timeout for the OpenAI client in
crates/goose/src/providers/openai.rs.Changes Made
Added
OPENAI_TIMEOUTConfig Key:ConfigKeynamedOPENAI_TIMEOUTwas added to themetadata()function of theOpenAiProvider.false), not required (false), and defaults to 600 seconds (Some("600")).Read Timeout from Config:
from_env()function, theOPENAI_TIMEOUTvalue is read from the global configuration usingconfig.get_param("OPENAI_TIMEOUT").u64and used to set the timeout when building thereqwest::Client.How to Configure
The
OPENAI_TIMEOUTcan be configured in two ways:Environment Variable:
Set the
OPENAI_TIMEOUTenvironment variable to the desired timeout value in seconds. For example:export OPENAI_TIMEOUT=1200goose configurecommand:Use the
goose configurecommand to set theOPENAI_TIMEOUTvalue.Environment variables take precedence over the configuration file settings.
After setting the configuration, restart your Goose agent or server for the changes to take effect.