全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
楼主: yshawn
打印 上一主题 下一主题

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

[复制链接]
11#
 楼主| 发表于 2024-7-21 15:51:07 | 只看该作者
一只很正常
12#
 楼主| 发表于 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."
      }
    ]
  }'
   
15#
发表于 2024-7-21 22:57:44 | 只看该作者
{
  "error": {
    "message": "Invalid URL (POST /v1/messages)",
    "type": "invalid_request_error",
    "param": "",
    "code": ""
  }
}
16#
 楼主| 发表于 2024-7-21 23:10:15 | 只看该作者
NicholasFuGui 发表于 2024-7-21 22:57
{
  "error": {
    "message": "Invalid URL (POST /v1/messages)",

d调用api 可以看主页例子,web聊天 可以使用本站自带的next-web
17#
发表于 2024-7-22 09:52:20 | 只看该作者
兑换码已被使用
18#
 楼主| 发表于 2024-7-22 10:22:50 | 只看该作者

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

本版积分规则

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

GMT+8, 2025-11-17 00:43 , Processed in 0.056869 second(s), 6 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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