Skip to content

Commit 3749025

Browse files
JounQinliby
authored andcommitted
fix: remove unnecessary azure domain check
close #154
1 parent 76835ce commit 3749025

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const validatePluginConfig = (): ServiceError | null => {
2727

2828
if (serviceProvider === 'azure-openai' && apiUrl) {
2929
const parts = {
30-
domain: /^https:\/\/[^\/]+\.openai\.azure\.com/,
3130
path: /\/openai\/deployments\/[^\/]+\/chat\/completions/,
3231
version: /\?api-version=\d{4}-\d{2}-\d{2}(?:-preview)?$/
3332
};

0 commit comments

Comments
 (0)