fix: 812 anthropic fix (#822)

<!-- .github/pull_request_template.md -->

## Description
Fixes Anthropic bug as reported by the user
https://github.com/topoteretes/cognee/issues/812

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
Vasilije 2025-05-16 10:52:44 +02:00 committed by GitHub
parent 3b07f3c08d
commit 4371b9d741
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 2 deletions

View file

@ -97,7 +97,7 @@ git push origin feature/your-feature-name
2. Create a Pull Request:
- Go to the [**cognee** repository](https://github.com/topoteretes/cognee)
- Click "Compare & Pull Request"
- Click "Compare & Pull Request" and open a PR against dev branch
- Fill in the PR template with details about your changes
## 5. 📜 Developer Certificate of Origin (DCO)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 KiB

After

Width:  |  Height:  |  Size: 2.3 MiB

View file

@ -18,7 +18,7 @@ class AnthropicAdapter(LLMInterface):
import anthropic
self.aclient = instructor.patch(
create=anthropic.Anthropic().messages.create, mode=instructor.Mode.ANTHROPIC_TOOLS
create=anthropic.AsyncAnthropic().messages.create, mode=instructor.Mode.ANTHROPIC_TOOLS
)
self.model = model