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

View File

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