Closed ykimura517 closed 6 months ago
The changes encompass updates to enhance asynchronous operations, particularly in embedding processes with Azure OpenAI, and refining the management of the history
attribute in core functionalities. Notable adjustments include removing a model from a token count script and improving error handling within the library's operations.
File Pattern | Change Summary |
---|---|
examples/token_count.py |
Removed the "gpt-4-0314" model from available models |
spiralfilm/core.py |
Added future annotations, updated history handling, refactored run to async, and made adjustments in methods |
spiralfilm/embed.py |
Added imports from openai , updated async handling and error processing, modified for AzureOpenAI client usage, adjusted embedding extraction and retries |
tests/test_core.py |
Added imports for async testing, updated tests for async operations and Azure configurations, adjusted test logic |
Objective | Addressed | Explanation |
---|---|---|
Error when embedding with AOAI (#27) | ✅ | |
Support for openai>=1.0.0 in embedding operations (#27) |
❌ | The changes do not specifically address the issue related to openai>=1.0.0 support in embedding operations. |
Update async operations and error handling in embedding and core modules | ✅ |
🐇🌟
In the garden of code, beneath the moon's soft glow, A rabbit hopped, with changes in tow. "Away with the old, in with the new," it said, As it tweaked the async, with no dread.
"Goodbye to a model, hello to the future, With each line of code, it did nurture. A hop, a skip, in the digital field, To bugs and errors, it shall not yield. 🌱
🐇💻🌌
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Close #27
Summary by CodeRabbit
"gpt-4-0314"
from the token count script, ensuring compatibility.asyncio.run
.