From ef51ac9b7f3e67c78b005d9dcabf1c49cfe1106b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E9=BE=99=200668001470?=
Date: Mon, 16 Mar 2026 08:44:40 +0800
Subject: [PATCH] test(provider): cover azure and cloudflare model ids
---
pkg/providers/factory_provider_test.go | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pkg/providers/factory_provider_test.go b/pkg/providers/factory_provider_test.go
index ac250ec4d..71916cbb0 100644
--- a/pkg/providers/factory_provider_test.go
+++ b/pkg/providers/factory_provider_test.go
@@ -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 {