Ark rejects max_tokens above 128000 for GLM-5.2. Add a config-driven STRIP_RULES entry that clamps max_tokens, max_completion_tokens and max_output_tokens down to the model maxOutput before the upstream call. Co-authored-by: Cursor <cursoragent@cursor.com> |
||
|---|---|---|
| .. | ||
| chunk.js | ||
| finishReason.js | ||
| image.js | ||
| json.js | ||
| message.js | ||
| modality.js | ||
| paramSupport.js | ||
| prefetch.js | ||
| reasoning.js | ||
| thinking.js | ||
| thinkingUnified.js | ||
| toolCall.js | ||
| usage.js | ||