uniprewan commented on PR #12924: URL: https://github.com/apache/apisix/pull/12924#issuecomment-3771284876
> 你好@uniprewan您能否详细说明一下您提交公关稿的背景?现有的慈善机构是否无法正常工作? Hi @Baoyuantop, Great question! Currently, the ai-proxy plugin's support for Anthropic is limited to simple request forwarding. It doesn't handle the protocol differences between OpenAI and Anthropic natively. For example, Anthropic's Messages API requires a separate system field for system prompts and has different message role structures. My PR introduces a native driver that performs proper protocol translation, allowing users to use Anthropic models seamlessly with OpenAI-compatible requests. I've also refactored the driver architecture to make it easier to add other providers in the future. I've just updated the PR with English comments, documentation, and test cases. Thanks! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
