Skip to content

是否将 OpenAI 格式 API 转换成 anthropic API 即可? #219

Open
@pfjia

Description

@pfjia

起因是看到了这个issue。 #145 其中介绍了使用kimi的模型,只要使用kimi的官方模型,充值后在原生的Claude-code中配置一下API-KEY和BaseURL,即可使用原生Claude-code。

这么说,是不是只要有一个项目能够将任何支持 OpenAPI 协议的模型适配成支持 anthropic 协议即可?

https://docs.anthropic.com/en/api/messages 这个文档中介绍了anthropic的协议。 所以也咨询一下,有没有现成的这种协议转换的开源代码。 目前在GitHub上搜索了一下,基本上都是将协议改成 OpenAI 协议,比如说 OneAPI ,cluadecodetoChatGPT 等。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions