Skip to main content

Type Alias: GatewayInferenceChatCompletionStreamResponseDelta

type GatewayInferenceChatCompletionStreamResponseDelta = {
[key: string]: unknown;
content?: string | null;
function_call?: {
[key: string]: unknown;
arguments?: string;
name?: string;
};
tool_calls?: GatewayInferenceChatCompletionMessageToolCallChunk[];
role?: "system" | "user" | "assistant" | "tool";
};

Defined in: src/models/ai-gateway-inference.ts:1128

Portkey ChatCompletionStreamResponseDelta; additive response fields are preserved.

Example​

`GatewayInferenceChatCompletionStreamResponseDeltaSchema.parse(value);`

Indexable​

[key: string]: unknown

Properties​

content?​

optional content?: string | null;

Defined in: src/models/ai-gateway-inference.ts:1129


function_call?​

optional function_call?: {
[key: string]: unknown;
arguments?: string;
name?: string;
};

Defined in: src/models/ai-gateway-inference.ts:1130

Index Signature​

[key: string]: unknown

arguments?​

optional arguments?: string;

name?​

optional name?: string;

tool_calls?​

optional tool_calls?: GatewayInferenceChatCompletionMessageToolCallChunk[];

Defined in: src/models/ai-gateway-inference.ts:1131


role?​

optional role?: "system" | "user" | "assistant" | "tool";

Defined in: src/models/ai-gateway-inference.ts:1132