Private
Public Access
1
0

Support Anthropic's native tool calling API

This commit is contained in:
2024-06-23 01:46:27 +00:00
parent c50b6b154d
commit 94d84ba7d7
6 changed files with 357 additions and 468 deletions

View File

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