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:
parent
3b07f3c08d
commit
4371b9d741
3 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ git push origin feature/your-feature-name
|
||||||
|
|
||||||
2. Create a Pull Request:
|
2. Create a Pull Request:
|
||||||
- Go to the [**cognee** repository](https://github.com/topoteretes/cognee)
|
- 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
|
- Fill in the PR template with details about your changes
|
||||||
|
|
||||||
## 5. 📜 Developer Certificate of Origin (DCO)
|
## 5. 📜 Developer Certificate of Origin (DCO)
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 353 KiB After Width: | Height: | Size: 2.3 MiB |
|
|
@ -18,7 +18,7 @@ class AnthropicAdapter(LLMInterface):
|
||||||
import anthropic
|
import anthropic
|
||||||
|
|
||||||
self.aclient = instructor.patch(
|
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
|
self.model = model
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue