docs: clarify provider-specific routing for aliased models

This commit is contained in:
Ravi Tharuma
2026-03-27 10:53:09 +01:00
parent d42b5d4e78
commit d54de441d3
4 changed files with 27 additions and 0 deletions

View File

@@ -74,6 +74,14 @@ CLIProxyAPIは[Amp CLI](https://ampcode.com)およびAmp IDE拡張機能の統
- 利用できないモデルを代替モデルにルーティングする**モデルマッピング**(例:`claude-opus-4.5``claude-sonnet-4`
- localhostのみの管理エンドポイントによるセキュリティファーストの設計
どのバックエンド実行系に送るかを確定させたい場合は、統合された OpenAI 互換 `/v1/...` エンドポイントよりも provider-specific のパスを優先してください。
- Anthropic 実行系を強制したい場合は `/api/provider/anthropic/v1/messages`
- Gemini/Google 実行系を強制したい場合は `/api/provider/google/v1beta/models/...`
- OpenAI 互換実行系を強制したい場合は `/api/provider/openai/v1/chat/completions`
これは `oauth-model-alias`、alias プール、model fallback によって複数のバックエンドが同じクライアント向けモデル名を共有する場合に特に重要です。その場合、`/v1/models` は実際に狙っている実行系ではなく、統合後のエイリアス表示を返すことがあります。バックエンド選択の基準としては provider-specific のリクエストパスを使ってください。
**→ [Amp CLI統合ガイドの完全版](https://help.router-for.me/agent-client/amp-cli.html)**
## SDKドキュメント