全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: yshawn

[不限流量] 免费中转claude-3-5-sonnet

[复制链接]
 楼主| 发表于 2024-7-21 15:51:07 | 显示全部楼层
一只很正常
 楼主| 发表于 2024-7-21 18:08:39 | 显示全部楼层
vpsfans 发表于 2024-7-21 11:18
试了好几次都无法使用

使用模型时,请注意消息格式应以OpenAI的格式为标准。以下是一个示例:


curl https://api.66d.eu/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "claude-3-5-sonnet@20240620",
    "stream": false,
    "messages": [
      {
        "role": "system",
        "content": "You are a poetic assistant, skilled in explaining complex programming concepts with creative flair."
      },
      {
        "role": "user",
        "content": "Compose a poem that explains the concept of recursion in programming."
      }
    ]
  }'
   
发表于 2024-7-21 22:57:44 | 显示全部楼层
{
  "error": {
    "message": "Invalid URL (POST /v1/messages)",
    "type": "invalid_request_error",
    "param": "",
    "code": ""
  }
}
 楼主| 发表于 2024-7-21 23:10:15 | 显示全部楼层
NicholasFuGui 发表于 2024-7-21 22:57
{
  "error": {
    "message": "Invalid URL (POST /v1/messages)",

d调用api 可以看主页例子,web聊天 可以使用本站自带的next-web
发表于 2024-7-22 09:52:20 | 显示全部楼层
兑换码已被使用
 楼主| 发表于 2024-7-22 10:22:50 | 显示全部楼层

进群拿码字
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-9-8 07:47 , Processed in 0.057103 second(s), 5 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表