Skip to Content

systemOneTextOutput()

function systemOneTextOutput(response): string[];

What the model wrote: each answer as JSON, in the order of answers.

Parameters

response

answers

Record<string, | { choice: string; confidence: number; probabilities: Record<string, number>; type: "choice"; } | { confidence: number; legend?: Record<string, string>; probabilities: Record<string, number>; score: number; type: "score"; } | { noul: number; type: "noul"; } | { box: { bottom: number; left: number; right: number; top: number; }; confidence: number; type: "box"; }> = ...

Keyed by the request’s question ids.

model

string = ...

The model that answered.

usage?

{ input_tokens?: number; output_tokens?: number; } = ...

usage.input_tokens?

number = ...

usage.output_tokens?

number = ...

Last updated on