Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/rulvar / OpenAiAdapterOptions

Interface: OpenAiAdapterOptions

Defined in: packages/openai/dist/index.d.ts

Properties

PropertyTypeDescriptionDefined in
apiKey?stringShorthand for sdkOptions.apiKey; setting both is a ConfigError.packages/openai/dist/index.d.ts
baseURL?stringShorthand for sdkOptions.baseURL; setting both is a ConfigError.packages/openai/dist/index.d.ts
client?OpenAI | OpenAiClientLikeA preconstructed client instead of the construction options above (combining them is a ConfigError): the official OpenAI instance (production; it must be constructed with maxRetries: 0) or a structural OpenAiClientLike mock (tests).packages/openai/dist/index.d.ts
sdkOptions?OpenAiSdkOptionsOfficial SDK construction options; see OpenAiSdkOptions.packages/openai/dist/index.d.ts