Skip to content

fix(aux): honor api_mode for custom auxiliary endpoints#1

Merged
zhongyueming1121 merged 1 commit into
mainfrom
fix/aux-anthropic-messages-mode
Apr 11, 2026
Merged

fix(aux): honor api_mode for custom auxiliary endpoints#1
zhongyueming1121 merged 1 commit into
mainfrom
fix/aux-anthropic-messages-mode

Conversation

@zhongyueming1121

Copy link
Copy Markdown
Owner

Summary

  • When users configure api_mode: anthropic_messages for custom endpoints, _try_custom_endpoint() now creates an AnthropicAuxiliaryClient instead of always defaulting to the OpenAI SDK
  • Fixes vision_analyze and other auxiliary tasks failing with "Your request was blocked" on Anthropic-compatible endpoints
  • Added test coverage for the new anthropic_messages branch

Test plan

  • Existing tests pass (pytest tests/agent/test_auxiliary_client.py)
  • New test test_custom_endpoint_uses_anthropic_wrapper_when_runtime_requests_anthropic_messages passes

🤖 Generated with Claude Code

When users configure api_mode: anthropic_messages for custom endpoints,
_try_custom_endpoint() now creates an AnthropicAuxiliaryClient instead
of always defaulting to the OpenAI SDK. This fixes vision_analyze and
other auxiliary tasks failing with "Your request was blocked" on
Anthropic-compatible endpoints.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@zhongyueming1121 zhongyueming1121 merged commit 0213165 into main Apr 11, 2026
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