fix: add base url for gemini (#4109)
This commit is contained in:
parent
e9dd795f9a
commit
d6dbe357fb
@ -54,7 +54,7 @@ export default class GeminiProvider extends BaseProvider {
|
|||||||
super(provider)
|
super(provider)
|
||||||
this.sdk = new GoogleGenerativeAI(this.apiKey)
|
this.sdk = new GoogleGenerativeAI(this.apiKey)
|
||||||
/// this sdk is experimental
|
/// this sdk is experimental
|
||||||
this.imageSdk = new GoogleGenAI({ apiKey: this.apiKey })
|
this.imageSdk = new GoogleGenAI({ apiKey: this.apiKey, httpOptions: { baseUrl: this.getBaseURL() } })
|
||||||
this.requestOptions = {
|
this.requestOptions = {
|
||||||
baseUrl: this.getBaseURL()
|
baseUrl: this.getBaseURL()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user