test(provider): cover azure and cloudflare model ids

This commit is contained in:
李龙 0668001470 2026-03-16 08:44:40 +08:00
parent 301d2f8bf9
commit ef51ac9b7f

View file

@ -70,6 +70,12 @@ func TestExtractProtocol(t *testing.T) {
wantProtocol: "openai",
wantModelID: "@cf/qwen/qwen1.5-0.5b-chat",
},
{
name: "azure with prefix",
model: "azure/my-gpt5-deployment",
wantProtocol: "azure",
wantModelID: "my-gpt5-deployment",
},
}
for _, tt := range tests {