feat: add gemini new model

This commit is contained in:
Martial BE
2024-03-25 10:50:43 +08:00
parent e7fbcbffab
commit 40ef06ceda
3 changed files with 4 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ func errorHandle(geminiError *GeminiErrorResponse) *types.OpenAIError {
func (p *GeminiProvider) GetFullRequestURL(requestURL string, modelName string) string {
baseURL := strings.TrimSuffix(p.GetBaseURL(), "/")
version := "v1"
version := "v1beta"
if p.Channel.Other != "" {
version = p.Channel.Other
}