Skip to content
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

Closed
takeoffnetworks opened this issue Sep 11, 2024 · 4 comments
Closed

Cannot get Claude models to work #149

takeoffnetworks opened this issue Sep 11, 2024 · 4 comments

Comments

@takeoffnetworks
Copy link

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'

@simpthy
Copy link

simpthy commented Sep 11, 2024

This seems like it might be a dupe of: #56

It was also discussed here: #15 (comment)

@emfastic
Copy link
Contributor

@takeoffnetworks can you confirm it's working for you now? it's implemented

@MadcowD
Copy link
Owner

MadcowD commented Sep 17, 2024

Yes please try

pip install --upgrade ell-ai

:)

@MadcowD MadcowD closed this as completed Sep 17, 2024
@takeoffnetworks
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants