Interface: MoonshotRequest
@providerprotocol/ai / moonshot / MoonshotRequest
Interface: MoonshotRequest
Section titled “Interface: MoonshotRequest”Defined in: src/providers/moonshot/types.ts:108
Request body for the Moonshot Chat Completions API.
Properties
Section titled “Properties”frequency_penalty?
Section titled “frequency_penalty?”
optionalfrequency_penalty:number
Defined in: src/providers/moonshot/types.ts:119
max_completion_tokens?
Section titled “max_completion_tokens?”
optionalmax_completion_tokens:number
Defined in: src/providers/moonshot/types.ts:117
max_tokens?
Section titled “max_tokens?”
optionalmax_tokens:number
Defined in: src/providers/moonshot/types.ts:116
messages
Section titled “messages”messages:
MoonshotMessage[]
Defined in: src/providers/moonshot/types.ts:110
model:
string
Defined in: src/providers/moonshot/types.ts:109
presence_penalty?
Section titled “presence_penalty?”
optionalpresence_penalty:number
Defined in: src/providers/moonshot/types.ts:118
response_format?
Section titled “response_format?”
optionalresponse_format:MoonshotResponseFormat
Defined in: src/providers/moonshot/types.ts:124
optionalseed:number
Defined in: src/providers/moonshot/types.ts:121
optionalstop:string|string[]
Defined in: src/providers/moonshot/types.ts:115
stream?
Section titled “stream?”
optionalstream:boolean
Defined in: src/providers/moonshot/types.ts:113
stream_options?
Section titled “stream_options?”
optionalstream_options:object
Defined in: src/providers/moonshot/types.ts:114
include_usage?
Section titled “include_usage?”
optionalinclude_usage:boolean
temperature?
Section titled “temperature?”
optionaltemperature:number
Defined in: src/providers/moonshot/types.ts:111
thinking?
Section titled “thinking?”
optionalthinking:MoonshotThinkingConfig
Defined in: src/providers/moonshot/types.ts:125
tool_choice?
Section titled “tool_choice?”
optionaltool_choice:MoonshotToolChoice
Defined in: src/providers/moonshot/types.ts:123
tools?
Section titled “tools?”
optionaltools:MoonshotTool[]
Defined in: src/providers/moonshot/types.ts:122
top_p?
Section titled “top_p?”
optionaltop_p:number
Defined in: src/providers/moonshot/types.ts:112
optionaluser:string
Defined in: src/providers/moonshot/types.ts:120