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)
|
||||
this.sdk = new GoogleGenerativeAI(this.apiKey)
|
||||
/// this sdk is experimental
|
||||
this.imageSdk = new GoogleGenAI({ apiKey: this.apiKey })
|
||||
this.imageSdk = new GoogleGenAI({ apiKey: this.apiKey, httpOptions: { baseUrl: this.getBaseURL() } })
|
||||
this.requestOptions = {
|
||||
baseUrl: this.getBaseURL()
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user