jtsang4 / claude-to-chatgpt

This project converts the API of Anthropic's Claude model to the OpenAI Chat API format.
MIT License
1.27k stars 150 forks source link

Add Support to Claude 3 #29

Closed vcarus closed 3 months ago

vcarus commented 9 months ago

Please add support to claude 3.

Model comparison: https://docs.anthropic.com/claude/docs/models-overview#model-comparison

API changes: Text Completions -> Messages https://docs.anthropic.com/claude/reference/migrating-from-text-completions-to-messages

jtsang4 commented 9 months ago

I don't have a available Claude API key currently. The previous key has been recycled. If you have a available key, PR is also welcome.

vcarus commented 9 months ago

Check your mailbox, key should be there😉

jtsang4 commented 9 months ago

Check your mailbox, key should be there😉

Great, received the key. I will try to support the latest model in my spare time.

shwangdev commented 8 months ago

what is the status of supporting Claude 3 models?

qebas commented 6 months ago

Hi @jtsang4 , are you still planning to update support for Claude 3 or is this an abandoned project?

jtsang4 commented 6 months ago

Hi @jtsang4, are you still planning to update support for Claude 3 or is this an abandoned project?

I'm not sure if it's necessary, projects like https://github.com/songquanpeng/one-api have already done a great job. Will it become a better choice? If there are still people in need, I can provide some support.

qebas commented 6 months ago

Hi @jtsang4, are you still planning to update support for Claude 3 or is this an abandoned project?

I'm not sure if it's necessary, projects like https://github.com/songquanpeng/one-api have already done a great job. Will it become a better choice? If there are still people in need, I can provide some support.

The project you mentioned doesn't provide a Cloudflare Worker solution, which is quite useful, just wondering if it's not much work, you could upgrade this project.

Thank you

jtsang4 commented 3 months ago

The cloudflare worker's version has been updated, new API and model are supported now, and the model name could be Claude's model likeclaude-3-haiku-20240307 directly.