Closed adrienbrault closed 5 days ago
Hey 👋
Fix from_litellm to correctly detect async functions and add corresponding tests.
from_litellm
Key points:
instructor/client.py
inspect.iscoroutinefunction
tests/llm/test_litellm.py
Instructor
AsyncInstructor
Generated with :heart: by ellipsis.dev
Hey 👋
Summary:
Fix
from_litellm
to correctly detect async functions and add corresponding tests.Key points:
from_litellm
function ininstructor/client.py
to correctly detect async functions usinginspect.iscoroutinefunction
.tests/llm/test_litellm.py
to verifyInstructor
andAsyncInstructor
creation.from_litellm
correctly returnsInstructor
for sync functions andAsyncInstructor
for async functions.Generated with :heart: by ellipsis.dev