Slight cleanup to openai
Remove /v1 from base url, removed some slight repetition
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user