mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 16:07:33 +00:00
跨族账号池中 ollama_cloud / 按模型分流平台账号经 GatewayService 转发时, anthropicUpstreamTargetURL 朴素拼接,base 带 /v1 即拼出 /v1/v1/messages (count_tokens 同),而同一账号在 OpenAI 族原生 Anthropic 链上版本感知拼接、 工作正常。抽出 anthropicProtocolEndpointURL 供两条链共用同一规则。