Builder
Functions
Link copied to clipboard
Sets the API key to use for requests. This is required.
Link copied to clipboard
Sets the base URL to use for requests. This is useful for testing. This can also be used to use the Azure OpenAI API, though we recommend using azureBuilder instead for that. Defaults to https://api.openai.com
.
Link copied to clipboard
Sets the OkHttpClient used to make requests. Modify this if you want to change the timeout, add interceptors, add a proxy, etc.
Link copied to clipboard
If you belong to multiple organizations, you can specify which one to use. Defaults to your default organization configured in the OpenAI dashboard.