Comments (4)
I think the issue is on tenacity here, you need to update it to 8.4.1
https://github.com/jd/tenacity/releases/tag/8.4.1
from instructor.
yeah, same error
I have also installed tenacity 8.4.0
from instructor.
@fer-git thanks for catching this, managed to reproduce this issue. I'll try to publish a fix soon for this
(instructor) ivanleo@Ivans-MacBook-Pro instructor % uv pip install tenacity==8.4.0
Resolved 1 package in 30ms
Installed 1 package in 2ms
- tenacity==8.4.1
+ tenacity==8.4.0
(instructor) ivanleo@Ivans-MacBook-Pro instructor % python3 test.py
Traceback (most recent call last):
File "/Users/ivanleo/Documents/coding/instructor/test.py", line 1, in <module>
import instructor
File "/Users/ivanleo/Documents/coding/instructor/instructor/__init__.py", line 15, in <module>
from .patch import apatch, patch
File "/Users/ivanleo/Documents/coding/instructor/instructor/patch.py", line 17, in <module>
from instructor.retry import retry_async, retry_sync
File "/Users/ivanleo/Documents/coding/instructor/instructor/retry.py", line 18, in <module>
from tenacity import AsyncRetrying, RetryError, Retrying, stop_after_attempt
File "/Users/ivanleo/Documents/coding/instructor/.venv/lib/python3.11/site-packages/tenacity/__init__.py", line 653, in <module>
from tenacity.asyncio import AsyncRetrying # noqa:E402,I100
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'tenacity.asyncio'
(instructor) ivanleo@Ivans-MacBook-Pro instructor % uv pip install tenacity==8.4.1
Resolved 1 package in 1ms
Installed 1 package in 2ms
- tenacity==8.4.0
+ tenacity==8.4.1
(instructor) ivanleo@Ivans-MacBook-Pro instructor % python3 test.py
name='Jason' age=25
from instructor.
@fer-git tenacity is now set to min 8.4.1 in instructor 1.3.5 so closing this issue!
from instructor.
Related Issues (20)
- Literal while streaming does not work HOT 2
- Optional[List] as field type crashes with streaming HOT 3
- Return types with response_model are less clear now HOT 5
- Can you make it run with open source models like llama HOT 1
- Cohere Schema Parsing ( Must specify type of object )
- Different results with and without Instructor HOT 6
- Async completions type checking error HOT 2
- [Feature]Add log for llm input/prompt text data
- Integrate with new OpenAI json_schema params HOT 1
- Support OpenAI API's new guaranteed structured output HOT 4
- support nested Annotated and set HOT 2
- AttributeError: module 'instructor' has no attribute 'from_openai' HOT 2
- Instructor being able to carry on with the chat after tool calls
- Instructor with Lagchain bind_tools? HOT 1
- [Bug] VertexAI client always fails when `response_model` is None HOT 1
- Streaming for Parallel tool execution
- Using Anthropic's Prompt Caching with Instructor
- Integrate BAML support into Instructor for enhanced LLM function handling and structured output
- Instructor doesn't support dictionary types HOT 1
- Get raw prompt *before* making API call
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instructor.