how change default base_api provider for openai option #1237
-
|
I used keys from other suppliers, just with different base_uri. How do I modify this? He also used the openai framework |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
For OpenAI configuration in goose, you can set the base API URL using the When configuring OpenAI as your provider, you can specify:
To configure these settings, run:
Then follow the prompts to select |
Beta Was this translation helpful? Give feedback.
-
|
This document may help as well as it shows environment variables to set the provider and/or model https://block.github.io/goose/docs/guides/environment-variables |
Beta Was this translation helpful? Give feedback.
For OpenAI configuration in goose, you can set the base API URL using the
OPENAI_HOSTparameter. This is optional and will default toapi.openai.comif not specified.When configuring OpenAI as your provider, you can specify:
OPENAI_API_KEY(required)OPENAI_HOST(optional)OPENAI_ORGANIZATION(optional)OPENAI_PROJECT(optional)To configure these settings, run:
goose configureThen follow the prompts to select
OpenAIas your provider and enter your configuration details.Warning
Currently, there are some limitations with custom OpenAI-compatible endpoints, and there are open feature requests to improve this functionality (#885 , #1198). If you need to use a custom OpenAI-compatible API …