Skip to content

feat(anthropic): add model mapping support for Anthropic provider#16

Merged
x5iu merged 1 commit intomainfrom
fix/anthropic-model-mapping
Dec 27, 2025
Merged

feat(anthropic): add model mapping support for Anthropic provider#16
x5iu merged 1 commit intomainfrom
fix/anthropic-model-mapping

Conversation

@x5iu
Copy link
Copy Markdown
Owner

@x5iu x5iu commented Dec 26, 2025

Summary

  • Add model mapping functionality when using Anthropic provider with UseRawRequestBody option, enabling model name translation similar to OpenRouter provider
  • Move viper config initialization to PreRun for cleaner command setup
  • Simplify redundant nil checks in model mapping code (since GetModels() returns empty map, not nil)
  • Bump version to v0.8.2

Test plan

  • Verify model mapping works correctly with Anthropic provider when use_raw_request_body: true
  • Verify config file loading still works correctly after viper initialization move
  • Run go vet ./... to ensure no issues

🤖 Generated with Claude Code

Add model mapping functionality when using Anthropic provider with
UseRawRequestBody option, allowing model name translation similar to
OpenRouter provider. Also move viper config initialization to PreRun
for cleaner setup and simplify redundant nil checks in model mapping.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@x5iu x5iu merged commit 539f29f into main Dec 27, 2025
1 check passed
@x5iu x5iu deleted the fix/anthropic-model-mapping branch December 27, 2025 11:07
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.

1 participant