-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot get Claude models to work #149
Comments
This seems like it might be a dupe of: #56 It was also discussed here: #15 (comment) |
@takeoffnetworks can you confirm it's working for you now? it's implemented |
Yes please try
:) |
Tested at my end and this works perfectly with claude sonnet. Thanks for this update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried without specifying the client and then by specifically including the anthropic client but does not work in both cases.
File "/.venv/lib/python3.11/site-packages/ell/lmp/complex.py", line 243, in model_call
(result, _api_params, metadata) = call(model=model, messages=messages, api_params={**config.default_lm_params, **api_params, **lm_params}, client=client or default_client_from_decorator, _invocation_origin=_invocation_origin, _exempt_from_tracking=exempt_from_tracking, _logging_color=color, _name=prompt.name, tools=tools)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<xxxx/.venv/lib/python3.11/site-packages/ell/util/api.py", line 83, in call
model_call = client.chat.completions.create
^^^^^^^^^^^
AttributeError: 'Anthropic' object has no attribute 'chat'
The text was updated successfully, but these errors were encountered: