Type alias AITextChatRequest
AITextChatRequest: { chatPrompt: Readonly<{ content: string; role: "system"; } | { content: string; name?: string; role: "user"; } | { content: string | null; functionCalls?: { function: { arguments?: string | object; name: string; }; id: string; type: "function"; }[]; name?: string; role: "assistant"; } | { content: string; functionId: string; role: "function"; }>[]; functionCall?: "none" | "auto" | { function: { name: string; }; type: "function"; }; functions?: Readonly<{ description: string; name: string; parameters?: FunctionJSONSchema; }>[]; modelConfig?: Readonly<TextModelConfig>; modelInfo?: Readonly<TextModelInfoWithProvider>; } & AITextBaseRequest Type declaration
chatPrompt: Readonly<{
content: string;
role: "system";
} | {
content: string;
name?: string;
role: "user";
} | {
content: string | null;
functionCalls?: {
function: {
arguments?: string | object;
name: string;
};
id: string;
type: "function";
}[];
name?: string;
role: "assistant";
} | {
content: string;
functionId: string;
role: "function";
}>[]
Optional
functionCall?: "none" | "auto" | {
function: {
name: string;
};
type: "function";
}
Optional
functions?: Readonly<{
description: string;
name: string;
parameters?: FunctionJSONSchema;
}>[]
Optional
modelConfig?: Readonly<TextModelConfig>