Update openai.ts

This commit is contained in:
Richard C Lim 2025-02-02 03:37:47 -05:00 committed by GitHub
parent 1c15eb7dc9
commit 1c4970b5bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,7 +99,7 @@ export class ChatGPTApi implements LLMApi {
// const apiPath = isAzure ? ApiPath.Azure : ApiPath.OpenAI;
// baseUrl = isApp ? OPENAI_BASE_URL : apiPath;
}
}
};
if (baseUrl.endsWith("/")) {
baseUrl = baseUrl.slice(0, baseUrl.length - 1);