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

Anthropic models phi 1205 #1138

Merged
merged 12 commits into from
Oct 3, 2024
Merged

Conversation

ysolanky
Copy link
Contributor

@ysolanky ysolanky commented Sep 19, 2024

Changes:

  • New Claude Model Class
  • Changed ModelResponse.content data type to Optional[Union[List[Any], str]] = None from Optional[Union[List[Dict], str]] = None as anthropic response consists of a list of Text and Tool Use blocks
  • Due to the Message content consisting of a list of Text and Tool use blocks, updated the message logging.
  • Added Claude cookbook

Notes:

  • The Anthropic API requires TextBlock and ToolUseBlock to be a part of the user message
    image

@jacobweiss2305 jacobweiss2305 self-requested a review October 3, 2024 12:24
Copy link
Contributor

@jacobweiss2305 jacobweiss2305 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent PR

Copy link
Contributor

@ashpreetbedi ashpreetbedi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

excellent PR

@ashpreetbedi ashpreetbedi merged commit a199ba3 into release/v2.5.0 Oct 3, 2024
1 check passed
AbhishekRP2002 pushed a commit to AbhishekRP2002/phidata that referenced this pull request Oct 28, 2024
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

Successfully merging this pull request may close these issues.

3 participants