openai / Exports / OpenAIProviderOptions
Interface: OpenAIProviderOptions
OpenAI provider options
Hierarchy
unknown
↳
OpenAIProviderOptions
Table of contents
Properties
Properties
model
• model: string
Model name to use (default: gpt-3.5-turbo)
Defined in
temperature
• Optional
temperature: number
Temperature (0~1)
Defined in
maxTokens
• Optional
maxTokens: number
Maximum number of tokens
Defined in
apiKey
• Optional
apiKey: string
OpenAI API key (optional: not required when using client)
Defined in
organization
• Optional
organization: string
OpenAI organization ID (optional)
Defined in
timeout
• Optional
timeout: number
API request timeout (milliseconds)
Defined in
baseURL
• Optional
baseURL: string
API base URL (default: 'https://api.openai.com/v1')
Defined in
responseFormat
• Optional
responseFormat: "json"
| "text"
Response format (default: 'json')
Defined in
client
• client: OpenAI
OpenAI client instance (required)