Skip to content

Interface: MoonshotRequest

@providerprotocol/ai


@providerprotocol/ai / moonshot / MoonshotRequest

Defined in: src/providers/moonshot/types.ts:108

Request body for the Moonshot Chat Completions API.

optional frequency_penalty: number

Defined in: src/providers/moonshot/types.ts:119


optional max_completion_tokens: number

Defined in: src/providers/moonshot/types.ts:117


optional max_tokens: number

Defined in: src/providers/moonshot/types.ts:116


messages: MoonshotMessage[]

Defined in: src/providers/moonshot/types.ts:110


model: string

Defined in: src/providers/moonshot/types.ts:109


optional presence_penalty: number

Defined in: src/providers/moonshot/types.ts:118


optional response_format: MoonshotResponseFormat

Defined in: src/providers/moonshot/types.ts:124


optional seed: number

Defined in: src/providers/moonshot/types.ts:121


optional stop: string | string[]

Defined in: src/providers/moonshot/types.ts:115


optional stream: boolean

Defined in: src/providers/moonshot/types.ts:113


optional stream_options: object

Defined in: src/providers/moonshot/types.ts:114

optional include_usage: boolean


optional temperature: number

Defined in: src/providers/moonshot/types.ts:111


optional thinking: MoonshotThinkingConfig

Defined in: src/providers/moonshot/types.ts:125


optional tool_choice: MoonshotToolChoice

Defined in: src/providers/moonshot/types.ts:123


optional tools: MoonshotTool[]

Defined in: src/providers/moonshot/types.ts:122


optional top_p: number

Defined in: src/providers/moonshot/types.ts:112


optional user: string

Defined in: src/providers/moonshot/types.ts:120