Skip to content

Cid/async tracing #464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 29, 2025
Merged

Cid/async tracing #464

merged 3 commits into from
Apr 29, 2025

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants