Skip to content

Commit c548af0

Browse files
committed
Honor the baseURL on gemini
Signed-off-by: David Gageot <david.gageot@docker.com>
1 parent 7b97883 commit c548af0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/model/provider/gemini/client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ func NewClient(ctx context.Context, cfg *latest.ModelConfig, env environment.Pro
5353
APIKey: apiKey,
5454
Backend: genai.BackendGeminiAPI,
5555
HTTPClient: httpclient.NewHttpClient(),
56+
HTTPOptions: genai.HTTPOptions{
57+
BaseURL: cfg.BaseURL,
58+
},
5659
})
5760
if err != nil {
5861
return nil, err

0 commit comments

Comments
 (0)