Skip to main content

Type Alias: GatewayInferenceInputChatCompletionRequestUserMessage

type GatewayInferenceInputChatCompletionRequestUserMessage = {
content: | string
| GatewayInferenceInputChatCompletionRequestMessageContentPart[];
role: "user";
name?: string;
};

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

Portkey ChatCompletionRequestUserMessage; strict modeled input with explicit JSON extension maps.

Example​

`GatewayInferenceInputChatCompletionRequestUserMessageSchema.parse(value);`

Properties​

content​

content:
| string
| GatewayInferenceInputChatCompletionRequestMessageContentPart[];

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


role​

role: "user";

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


name?​

optional name?: string;

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