Revert "Chat gpt"

This commit is contained in:
DeanYao
2024-05-20 19:02:46 +08:00
committed by GitHub
parent 754acd7c26
commit d89a12aa05
38 changed files with 696 additions and 639 deletions

View File

@@ -120,9 +120,7 @@ export class GeminiProApi implements LLMApi {
if (!baseUrl) {
baseUrl = isApp
? DEFAULT_API_HOST +
"/api/proxy/google/" +
Google.ChatPath(modelConfig.model)
? DEFAULT_API_HOST + "/api/proxy/google/" + Google.ChatPath(modelConfig.model)
: this.path(Google.ChatPath(modelConfig.model));
}
@@ -141,7 +139,7 @@ export class GeminiProApi implements LLMApi {
() => controller.abort(),
REQUEST_TIMEOUT_MS,
);
if (shouldStream) {
let responseText = "";
let remainText = "";