* Override to always include max_tokens for Moonshot (not max_completion_tokens). * Moonshot requires max_tokens parameter to be sent.
()
| 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 | } |
no outgoing calls