Skip to content

Cid/async tracing#464

Merged
whoseoyster merged 3 commits into
mainfrom
cid/async-tracing
Apr 29, 2025
Merged

Cid/async tracing#464
whoseoyster merged 3 commits into
mainfrom
cid/async-tracing

Conversation

@gustavocidornelas

@gustavocidornelas gustavocidornelas commented Apr 29, 2025

Copy link
Copy Markdown
Contributor

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants