Skip to content

Add support for Claude Opus 4.8 model#79

Merged
adambalogh merged 1 commit into
mainfrom
claude/quirky-clarke-ri1Vw
May 28, 2026
Merged

Add support for Claude Opus 4.8 model#79
adambalogh merged 1 commit into
mainfrom
claude/quirky-clarke-ri1Vw

Conversation

@adambalogh
Copy link
Copy Markdown
Contributor

@adambalogh adambalogh commented May 28, 2026

Summary

Adds support for the Claude Opus 4.8 model to the TEE gateway's model registry and pricing configuration.

Changes

  • Model Registry: Added CLAUDE_OPUS_4_8 enum entry with Anthropic provider configuration
    • Input pricing: $0.000005 per token
    • Output pricing: $0.000025 per token
    • Temperature parameter not supported (consistent with Opus 4.7+)
  • Model Mapping: Registered "claude-opus-4-8" string identifier in the model lookup dictionary
  • Tests: Added test_claude_opus_4_8_resolves() to verify model configuration resolution and pricing values

Implementation Details

The new model follows the same configuration pattern as existing Claude Opus variants (4.5, 4.6, 4.7), with supports_temperature=False to match the API behavior of recent Opus versions that reject the temperature field with HTTP 400 errors.

Register claude-opus-4-8 with Opus-tier pricing ($5/$25 per MTok input/
output) and supports_temperature=False (Opus 4.7+ reject the temperature
field). Adds a resolution test mirroring the other Opus models.
@adambalogh adambalogh marked this pull request as ready for review May 28, 2026 20:36
@adambalogh adambalogh merged commit 4f92a3b into main May 28, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants