UNPKG

snowcell

Version:

Official Snowcell Node.js/TypeScript SDK

20 lines 679 B
import { SnowcellClientBase } from './client.js'; import { ChatCompletionResponse, ChatCompletionChunk, ChatMessage } from './schemas.js'; export interface ChatCreateParams { model: string; messages: ChatMessage[] | Array<{ role: string; content: string; }>; max_tokens?: number; temperature?: number; stream?: boolean; [key: string]: any; } export declare class Chat { private _client; constructor(_client: SnowcellClientBase); create(params: ChatCreateParams): Promise<ChatCompletionResponse>; stream(params: Omit<ChatCreateParams, 'stream'>): AsyncGenerator<ChatCompletionChunk>; } //# sourceMappingURL=chat.d.ts.map