Files
CLIProxyAPI/internal/runtime/executor
Luis Pater 0d18d3b365 feat(claude): support model-specific default max tokens from registry in OpenAI chat completions
- Introduce `defaultClaudeChatMaxTokensForModel` to determine default max tokens based on model metadata and fallback rules.
- Update `ConvertOpenAIRequestToClaude` to apply model-specific default max tokens and handle null `max_tokens` or `max_completion_tokens`.
- Implement `stripTranslatedDefaultMaxTokens` in Claude executor to allow payload default rules to override synthesized max tokens when omitted by the caller.

Closes: #6601
2026-10-14 08:40:02 +08:00
..