Closed svs closed 5 months ago
This is nice 👍
@alexrudall can we get this merged, please
@alexrudall Looks great to me thanks for the work all!
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."}}
Looks great! Thanks so much
We should probably update the README as well.
@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
I'm using this branch for a project, it's working well.
We should probably update the README as well.
Yep, let's get claude-3 + messages
to top of README.
@alexrudall perhaps make some other people maintainers/gem releases?
Let's ship this! 🚢 😄
nice can you guys merge this in!
Released in v0.2 - thanks all for your contributions, esp @obie and @svs !
I saw @obie's PR and improved on it slightly.
present?
which is a Rails-only method so the library works outside of Rails as wellmessages
function API break out the parameters. I understand it makes it marginally easier to call the API but there should also be a 1:1 mapping between the Anthropic API docs and our gem, which @obie's API breaks.Hope this helps.