Private
Public Access
1
0

Slight cleanup to openai

Remove /v1 from base url, removed some slight repetition
This commit is contained in:
2024-06-23 04:17:53 +00:00
parent 11402c5534
commit 677cfcfebf
2 changed files with 14 additions and 23 deletions

View File

@@ -122,7 +122,7 @@ func (c *Context) GetModelProvider(model string) (string, api.ChatCompletionProv
BaseURL: url,
}, nil
case "openai":
url := "https://api.openai.com/v1"
url := "https://api.openai.com"
if p.BaseURL != nil {
url = *p.BaseURL
}