Skip to content

Commit

Permalink
撤销
Browse files Browse the repository at this point in the history
  • Loading branch information
htmambo committed Jan 26, 2024
1 parent e3b2d8e commit 4af6113
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/client/platforms/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ export class ChatGPTApi implements LLMApi {

if (isAzure) {
path = makeAzurePath(path, accessStore.azureApiVersion);
} else if (baseUrl.includes("cloudflare")) {
// 如果baseUrl中包含cloudflare,并且path是以/v1/开头,那么就将开头的/v1/替换为/
path = path.startsWith("/v1/") ? path.replace("/v1/", "/") : path;
}

return [baseUrl, path].join("/");
Expand Down

0 comments on commit 4af6113

Please sign in to comment.