MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / getMaxOutputTokens

Method getMaxOutputTokens

src/api/providers/moonshot.ts:71–75  ·  view source on GitHub ↗

* Override to always include max_tokens for Moonshot (not max_completion_tokens). * Moonshot requires max_tokens parameter to be sent.

()

Source from the content-addressed store, hash-verified

69 * Moonshot requires max_tokens parameter to be sent.
70 */
71 protected override getMaxOutputTokens(): number | undefined {
72 const modelInfo = this.config.modelInfo
73 // Moonshot always requires max_tokens
74 return this.options.modelMaxTokens || modelInfo.maxTokens || undefined
75 }
76}

Callers 3

createMessageFunction · 0.80
completePromptFunction · 0.80

Calls

no outgoing calls

Tested by 1