agentskit.js

OpenAIConfig

Auto-generated API reference for OpenAIConfig.

Interface: OpenAIConfig

Defined in: adapters/src/openai.ts:5

#Properties

#apiKey

apiKey: string

Defined in: adapters/src/openai.ts:6


#baseUrl?

optional baseUrl?: string

Defined in: adapters/src/openai.ts:8


#includeUsage?

optional includeUsage?: boolean

Defined in: adapters/src/openai.ts:17

Ask the provider to include token usage in the final stream chunk via stream_options: \{ include_usage: true \}. Off by default because some OpenAI-compatible providers (OpenRouter proxies to a long tail of backends) reject unknown params with a 4xx and break the whole stream. Turn this on for vanilla api.openai.com.


#model

model: string

Defined in: adapters/src/openai.ts:7


#retry?

optional retry?: RetryOptions

Defined in: adapters/src/openai.ts:9

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.