feat: azure openai support

This commit is contained in:
Timothy Jaeryang Baek committed 2025-05-19 03:40:32 +04:00
1 parent 47f8b3500b
commit caeb822cdc
5 files changed
+174 -111

No files matched your search

+4 -3
View File
@@ -267,10 +267,10 @@ export const getOpenAIModels = async (token: string, urlIdx?: number) => {
export const verifyOpenAIConnection = async (
token: string = '',
url: string = 'https://api.openai.com/v1',
key: string = '',
connection: dict = {},
direct: boolean = false
) => {
const { url, key, config } = connection;
if (!url) {
throw 'OpenAI: URL is required';
}
@@ -309,7 +309,8 @@ export const verifyOpenAIConnection = async (
},
body: JSON.stringify({
url,
key
key,
config
})
})
.then(async (res) => {