Class OpenAiOptions
- Namespace
- OpenAI
- Assembly
- AntRunnerLib.dll
- Inheritance
-
System.
Object OpenAiOptions
- Inherited Members
-
System.
Object. Equals(System. Object) System.Object. Equals(System. Object, System. Object) System.Object. Get Hash Code() System.Object. Get Type() System.Object. Memberwise Clone() System.Object. Reference Equals(System. Object, System. Object) System.Object. To String()
Fields
SettingKey
Setting key for Json Setting Bindings
Field Value
- System.
String
Properties
ApiKey
The OpenAI API uses API keys for authentication. Visit your API Keys page to retrieve the API key you'll use in your requests. Remember that your API key is a secret! Do not share it with others or expose it in any client-side code(browsers, apps). Production requests must be routed through your own backend server where your API key can be securely loaded from an environment variable or key management service.
Property Value
- System.
String
ApiVersion
Default Api Version
Property Value
- System.
String
Assistants
Calls to the Assistants API require that you pass a beta HTTP header. This is handled automatically if you’re using OpenAI’s official Python or Node.js SDKs. assistants overview page.
Property Value
- System.
String
BaseDomain
Base Domain
Property Value
- System.
String
DefaultEngineId
Default model id. If you are working with only one model, this will save you from few line extra code.
Property Value
- System.
String
DefaultModelId
Default model id. If you are working with only one model, this will save you from few line extra code.
Property Value
- System.
String
DeploymentId
Azure Deployment Id
Property Value
- System.
String
Organization
For users who belong to multiple organizations, you can pass a header to specify which organization is used for an API request. Usage from these API requests will count against the specified organization's subscription quota. Organization IDs can be found on your Organization settings page.
Property Value
- System.
String
ProviderType
Get Provider Type
Property Value
ResourceName
Azure Resource Name
Property Value
- System.
String
UseBeta
Property Value
- System.
Boolean
ValidateApiOptions
Property Value
- System.
Boolean
Methods
Validate()
Validate Settings