coze-dev / coze-dev/coze-studio
Claude官方的模型API的配置文件有错误
Open
- Dominant language
- TypeScript
- Stars
- 21.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
使用Claude官方的API,访问存在问题
create new streaming message fail: POST "https://api.anthropic.com/v1/messages": 403 Forbidden {
"error": {
"type": "forbidden",
"message": "Request not allowed"
}
}
按照配置文档 https://github.com/coze-dev/coze-studio/wiki/3.-%E6%A8%A1%E5%9E%8B%E9%85%8D%E7%BD%AE
url https://api.anthropic.com/v1/ 多了一个v1
另外对比官方还少anthropic-version 字段导致403错误
curl https://api.anthropic.com/v1/messages \
--header "x-api-key: $ANTHROPIC_API_KEY" \
--header "anthropic-version: 2023-06-01" \
--header "content-type: application/json" \
--data \
Contributor guide
Assessment
This issue has not been assessed yet.