OpenAIOptions
Namespace: Vercel.AI.OpenAI
public sealed class OpenAIOptions : OpenAICompatibleOptionsOpenAI provider settings.
Inheritance: object → OpenAICompatibleOptions
Constructors
Section titled “Constructors”OpenAIOptions()
Section titled “OpenAIOptions()”public OpenAIOptions()Creates options aimed at https://api.openai.com/v1 unless OPENAI_BASE_URL is set.
Properties
Section titled “Properties”BaseUrl
Section titled “BaseUrl”public string BaseUrl { get; set; }API origin. An assigned value wins over OPENAI_BASE_URL.
A blank value is rejected when the provider is created.
Value: string
BatchResultDownloads
Section titled “BatchResultDownloads”public BatchResultDownloads? BatchResultDownloads { get; set; }Settings for downloading JSON Lines batch results.
Value: BatchResultDownloads
Organization
Section titled “Organization”public string? Organization { get; set; }Value of the OpenAI-Organization header.
Value: string
Project
Section titled “Project”public string? Project { get; set; }Value of the OpenAI-Project header.
Value: string
UseResponsesApi
Section titled “UseResponsesApi”public bool UseResponsesApi { get; set; }When true, LanguageModel(string) uses the Responses API.
Value: bool
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product