Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

ChatCompletionRequest

Generated from the checked-in source. Do not edit this reference by hand.

SDK source. All SDK types.

TypeScript
export type ChatCompletionRequest = {
model: string;
messages: ChatMessage[];
tools?: ChatFunctionTool[];
tool_choice?: ChatToolChoice;
parallel_tool_calls?: boolean;
response_format?: ChatResponseFormat;
/** Priced OpenRouter Chat: positive reasoning subset below the total output limit. */
reasoning?: {
max_tokens: number;
exclude?: boolean;
};
stream?: false;
[key: string]: unknown;
};