feat: support set api key from client side

This commit is contained in:
Fred Liang
2023-12-24 03:44:13 +08:00
parent 4169431f2c
commit 20f2f61349
5 changed files with 16 additions and 4 deletions

View File

@@ -49,7 +49,6 @@ export class GeminiApi implements LLMApi {
const shouldStream = false;
const controller = new AbortController();
options.onController?.(controller);
try {
const chatPath = this.path(Google.ChatPath);
const chatPayload = {