alexrudall / anthropic

Anthropic (Claude) API + Ruby! 🤖🌌
MIT License
109 stars 28 forks source link

Adds support for Anthropic's messages API #11

Closed svs closed 5 months ago

svs commented 6 months ago

I saw @obie's PR and improved on it slightly.

Hope this helps.

deepakmahakale commented 6 months ago

This is nice 👍

deepakmahakale commented 6 months ago

@alexrudall can we get this merged, please

duncantmiller commented 6 months ago

@alexrudall Looks great to me thanks for the work all!

rameerez commented 6 months ago

I've also tested this, works fine!

Thanks for the work, this makes it possible to use Claude 3, since the complete API was deprecated in favor of messages for the new models.

For future reference / Google, the error Anthropic throws when you try to use Claude 3 on the complete API is this:

{"type"=>"error", "error"=>{"type"=>"invalid_request_error", "message"=>"\"claude-3-opus-20240229\" is not supported on this API. Please use the Messages API instead."}}
frmsaul commented 6 months ago

Looks great! Thanks so much

frmsaul commented 6 months ago

We should probably update the README as well.

deepakmahakale commented 6 months ago

@alexrudall I have added documentation for messages API in this PR - https://github.com/alexrudall/anthropic/pull/12

We can merge #12 once this pr is merged

Maclenn77 commented 6 months ago

I'm using this branch for a project, it's working well.

drnic commented 5 months ago

We should probably update the README as well.

Yep, let's get claude-3 + messages to top of README.

drnic commented 5 months ago

@alexrudall perhaps make some other people maintainers/gem releases?

andreibondarev commented 5 months ago

Let's ship this! 🚢 😄

bloolizard commented 5 months ago

nice can you guys merge this in!

alexrudall commented 5 months ago

Released in v0.2 - thanks all for your contributions, esp @obie and @svs !