From c5ad25c2a0db64957dbdac3fe4345ee1e3bb4a28 Mon Sep 17 00:00:00 2001 From: Bryan Lee <38807139+liby@users.noreply.github.com> Date: Fri, 13 Dec 2024 10:40:35 +0800 Subject: [PATCH] fix: update gemini `testApiConnection` method to use `baseUrl` from config --- src/adapter/gemini.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adapter/gemini.ts b/src/adapter/gemini.ts index 196b08e..e054380 100644 --- a/src/adapter/gemini.ts +++ b/src/adapter/gemini.ts @@ -84,7 +84,7 @@ export class GeminiAdapter extends BaseAdapter { public async testApiConnection( apiKey: string, - apiUrl: string, + _apiUrl: string, completion: ValidationCompletion, ): Promise { const header = this.buildHeaders(apiKey); @@ -92,7 +92,7 @@ export class GeminiAdapter extends BaseAdapter { try { const response = await $http.request({ method: "GET", - url: apiUrl, + url: this.config.baseUrl!, header });