OAIPro Claude报错

求助 :smiling_face_with_tear:,用的LobeChat,代理地址填的:https://api.oaipro.com。报错如下:

{
  "error": {
    "status": 404,
    "headers": {
      "cache-control": "max-age=604800",
      "connection": "keep-alive",
      "content-type": "application/json; charset=utf-8",
      "date": "Fri, 14 Jun 2024 15:06:17 GMT",
      "strict-transport-security": "max-age=15552000; includeSubDomains; preload",
      "transfer-encoding": "chunked",
      "vary": "Accept-Encoding",
      "x-content-type-options": "nosniff",
      "x-oneapi-request-id": "2024061423061727227077nFkJQQo5"
    },
    "error": {
      "error": {
        "message": "Invalid URL (POST /v1/messages)",
        "type": "invalid_request_error",
        "param": "",
        "code": ""
      }
    }
  },
  "endpoint": "https://api.oa****ro.com/",
  "provider": "anthropic"
}

类型要选 openai,经过 oneapi / newapi 中转后都是 openai 类型

楼上佬友说的对,用OpenAI 的端点

1 个赞

@zhong_little @neo 谢谢解答,我刚又试了下,OpenAI模型可以用,Claude模型如何开启,是需要那里自定义添加吗?

可以手动添加,也可以点击重置,一键填入 api 支持的所有模型,不想用的再做减法

image

可以了,非常感谢! :heart:

都是转成openai格式的