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

Claude/Anthropic support was removed #913

Open
3 tasks done
ADR-007 opened this issue Apr 24, 2024 · 1 comment
Open
3 tasks done

Claude/Anthropic support was removed #913

ADR-007 opened this issue Apr 24, 2024 · 1 comment
Labels
question Further information is requested

Comments

@ADR-007
Copy link

ADR-007 commented Apr 24, 2024

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to try to find a similar issue and didn't find one.
  • I searched the Marvin documentation for this issue.

Bug summary

The documentation and some old PRs say that Claude (Anthropic) LLM should be supported, but in reality, such functionality is not available.

I need to use both OpenAI and Claude on my project, and I would like to know if you have plans to support it. Thanks!

Reproduction

# follow the documentation:
# https://www.askmarvin.ai/utilities%20%28old%29/chat_completion/#basic-use

from marvin import ChatCompletion
import os

os.environ['ANTHROPIC_API_KEY'] = 'anthropic_private_key'

# Set up a dummy list of messages.
messages = [{'role': 'user', 'content': 'Hey! How are you?'}]

# Call claude-2 simply by specifying it inside of ChatCompletion.
anthropic = ChatCompletion('claude-2').create(messages = messages)

print(anthropic.choices[0].message.content)
# I'm doing well, thanks for asking!

Error

There is no "ChatCompletion" or anything that mentions Claude/Anthropic in the source code.

Versions

Version:                2.3.1
Python version:         3.11.8
OS/Arch:                darwin/arm64

Additional context

No response

@ADR-007 ADR-007 added the bug Something isn't working label Apr 24, 2024
@zzstoatzz
Copy link
Collaborator

hi @ADR-007 - anthropic support was removed with the release of marvin 2.x and would need to be implemented according to new tool use paradigms in the anthropic APIs - we'd like to add support soon and would welcome / guide any contributions!

@zzstoatzz zzstoatzz added question Further information is requested and removed bug Something isn't working labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants