import { z } from "zod"; import type { JsonCompletion, Provider } from "./index.js"; export declare const ResponseFormat: z.ZodEnum<{ json_object: "json_object"; none: "none"; }>; export type ResponseFormat = z.infer; /** * What an output limit is called on this endpoint. * * OpenAI renamed the field to `max_completion_tokens` and its newer models * reject the old one; the servers that copied the API before that rename — * DeepSeek, Ollama, llama.cpp and the rest — only know `max_tokens`. There is * no spelling both accept, so the caller says which endpoint it is talking to * rather than the request guessing from a hostname. */ export type TokenLimitField = "max_tokens" | "max_completion_tokens"; /** * The `/chat/completions` shape. The system prompt is the first message rather * than a separate field. */ export declare const openAiCompleteJson: (provider: Provider, request: JsonCompletion, tokenLimitField: TokenLimitField, responseFormat: ResponseFormat) => Promise; //# sourceMappingURL=openai.d.ts.map