Skip to content

Conversation

@gustavocidornelas
Copy link
Contributor

@gustavocidornelas gustavocidornelas commented Apr 29, 2025

Summary

  • The trace_async_openai wrapper was not working correctly when stream=True, raising the error:
TypeError: object async_generator can't be used in 'await' expression 
  • 35d0232 fixes this issue, by handling the AsyncIterator iterator correctly.
  • 37f8ca0 exposes the trace_async_openai and trace_async methods at the top level of the lib, so that they can be conveniently imported as in:
from openlayer.lib import trace_async_openai, trace_async
  • f63d990 fixes the issue where the Azure OpenAI chat completion steps were added alongside a redundant OpenAI chat completion step.
@whoseoyster whoseoyster merged commit 23ee128 into main Apr 29, 2025
2 checks passed
@whoseoyster whoseoyster deleted the cid/async-tracing branch April 29, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants