Package-level declarations

Types

Link copied to clipboard

A Model for OpenAI's Chat Completions API and the endpoints compatible with it, such as Gemini and Vertex AI Model Garden models, xAI's Grok, Groq, Mistral, Together, or a local server.

Link copied to clipboard

An error returned by a Chat Completions endpoint. statusCode is the HTTP status, or null for an error reported in a successful response or inside a stream. The errors ChatCompletions throws never include a request or response body, so they stay free of customer content.