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

Fix function calling conversations for Claude #68

Merged
merged 6 commits into from
Aug 22, 2024
Merged

Fix function calling conversations for Claude #68

merged 6 commits into from
Aug 22, 2024

Conversation

ahyatt
Copy link
Owner

@ahyatt ahyatt commented Aug 22, 2024

The way we were handling conversations for Claude was incorrect. Claude has some differences (see https://docs.anthropic.com/en/docs/build-with-claude/tool-use#tool-execution-error), and the previous way we were dealing with those differences was incorrect.

This fixes #62 (comment).

This both fixes an issue with us sending Claude something not supported when
having function-call conversations, but also gives the client a way to handle
conversations with functions that respects differences in how the LLMs expect to
be called.

Fixes #62
@ahyatt ahyatt temporarily deployed to Continuous Integration August 22, 2024 04:38 — with GitHub Actions Inactive
@ahyatt ahyatt temporarily deployed to Continuous Integration August 22, 2024 04:38 — with GitHub Actions Inactive
@ahyatt ahyatt temporarily deployed to Continuous Integration August 22, 2024 04:38 — with GitHub Actions Inactive
@ahyatt ahyatt temporarily deployed to Continuous Integration August 22, 2024 04:38 — with GitHub Actions Inactive
Also make the tests cleaner via macros
@ahyatt ahyatt temporarily deployed to Continuous Integration August 22, 2024 04:52 — with GitHub Actions Inactive
@ahyatt ahyatt temporarily deployed to Continuous Integration August 22, 2024 04:52 — with GitHub Actions Inactive
@ahyatt ahyatt had a problem deploying to Continuous Integration August 22, 2024 04:52 — with GitHub Actions Failure
@ahyatt ahyatt had a problem deploying to Continuous Integration August 22, 2024 04:52 — with GitHub Actions Error
@ahyatt ahyatt temporarily deployed to Continuous Integration August 22, 2024 04:56 — with GitHub Actions Inactive
@ahyatt ahyatt temporarily deployed to Continuous Integration August 22, 2024 04:56 — with GitHub Actions Inactive
@ahyatt ahyatt temporarily deployed to Continuous Integration August 22, 2024 04:56 — with GitHub Actions Inactive
@ahyatt ahyatt temporarily deployed to Continuous Integration August 22, 2024 04:56 — with GitHub Actions Inactive
@ahyatt ahyatt merged commit 8a91a6d into main Aug 22, 2024
4 checks passed
@ahyatt ahyatt deleted the claude-fc branch August 22, 2024 05:01
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.

Errors when function calling with Claude
1 participant