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

ChatGenerationsBranch

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

SDK source. All SDK types.

TypeScript
export type ChatGenerationsBranch = {
model?: string;
content?: string;
elapsedMs?: number;
/** Saved comparison phase, not authoritative execution status or cancellation. */
phase?: 'connecting' | 'streaming' | 'complete' | 'failed' | 'cancelled';
promptTokens?: number | null;
completionTokens?: number | null;
totalTokens?: number | null;
error?: string | null;
customerChargeNanos?: string | null;
customerChargeCurrency?: string | null;
customerChargeStatus?: 'charged' | 'owner_funded' | 'pending' | 'unpriced' | 'not_charged' | 'unknown';
task: ChatGenerationsTaskReference | null;
};