Skip to content

Commit

Permalink
fix: update gemini testApiConnection method to use baseUrl from c…
Browse files Browse the repository at this point in the history
…onfig
  • Loading branch information
liby committed Dec 13, 2024
1 parent 4ab1b08 commit c5ad25c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/adapter/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ export class GeminiAdapter extends BaseAdapter {

public async testApiConnection(
apiKey: string,
apiUrl: string,
_apiUrl: string,
completion: ValidationCompletion,
): Promise<void> {
const header = this.buildHeaders(apiKey);

try {
const response = await $http.request({
method: "GET",
url: apiUrl,
url: this.config.baseUrl!,
header
});

Expand Down

0 comments on commit c5ad25c

Please sign in to comment.