feat(ai-agents): add anthropic-messages support for custom account by zhengkunwang223 · Pull Request #12013 · 1Panel-dev/1Panel

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep custom primary model ID consistent with configured model

For custom accounts, this now derives primary from only the last path segment (e.g. anthropic/claude-3-5-sonnet becomes custom/claude-3-5-sonnet), while the configured model entry keeps the full ID (customModelID). When a custom model name contains / (common with gateway-style model IDs), agents.defaults.model.primary no longer points at the same model entry written under models.providers.custom.models, so the agent can resolve an undefined/wrong default model at runtime.

Useful? React with 👍 / 👎.