Skip to main content

Anthropic

info

你可以从Anthropic控制台获取API密钥。

聊天模型

我们建议配置Claude 3.5 Sonnet作为您的聊天模型。

config.json
{
"models": [
{
"title": "Claude 3.5 Sonnet",
"provider": "anthropic",
"model": "claude-3-5-sonnet-latest",
"apiKey": "[API_KEY]"
}
]
}

自动完成模型

Anthropic 目前不提供任何自动补全模型。

Click here 查看自动完成模型提供者的列表。

嵌入模型

Anthropic 目前不提供任何嵌入模型。

点击这里查看嵌入模型提供者的列表。

重排序模型

Anthropic 目前不提供任何重新排序模型。

点击这里查看重新排名模型提供者的列表。

提示缓存

Anthropic 支持 使用 Claude 进行提示缓存

要启用系统消息和逐轮对话的缓存,请按以下方式更新您的模型配置:

{
"models": [
{
// Enable prompt caching
"cacheBehavior": {
"cacheSystemMessage": true,
"cacheConversation": true
},
"title": "Anthropic",
"provider": "anthropic",
"model": "claude-3-5-sonnet-latest",
"apiKey": "[API_KEY]"
}
]
}