Update openai.ts

This commit is contained in:
Richard C Lim 2025-02-01 03:22:56 -05:00 committed by GitHub
parent 8d29eb7c63
commit 0831be97ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@ export class ChatGPTApi implements LLMApi {
let baseUrl = ""; let baseUrl = "";
const isAzure = path.includes("deployments"); const isAzure = path.includes("deployments") || accessStore.azureUrl?.includes(".models.ai.azure.com");
if (accessStore.useCustomConfig) { if (accessStore.useCustomConfig) {
if (isAzure && !accessStore.isValidAzure()) { if (isAzure && !accessStore.isValidAzure()) {
throw Error( throw Error(