Skip to content

fix(openai): ainvoke uses async _aget_response; add async tests #32459

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

vineethkumarrao
Copy link

Fixes bug where OpenAIAssistantRunnable.ainvoke called sync _get_response instead of async _aget_response.

Adds async unit tests covering:
completed run (as_agent=False) returns messages via async list
requires_action (as_agent=True) returns OpenAIAssistantAction
References: #32398

Copy link

vercel bot commented Aug 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Aug 8, 2025 2:24pm

Copy link

codspeed-hq bot commented Aug 8, 2025

CodSpeed WallTime Performance Report

Merging #32459 will not alter performance

Comparing vineethkumarrao:fix/openai-assistant-ainvoke-async-response (fb77b53) with master (c312362)

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

Summary

✅ 13 untouched benchmarks

@vineethkumarrao vineethkumarrao changed the title fix(openai_assistant): ainvoke uses async _aget_response; add async tests fix(openai): ainvoke uses async _aget_response; add async tests Aug 8, 2025
Copy link

codspeed-hq bot commented Aug 8, 2025

CodSpeed Instrumentation Performance Report

Merging #32459 will not alter performance

Comparing vineethkumarrao:fix/openai-assistant-ainvoke-async-response (fb77b53) with master (c312362)

Summary

✅ 14 untouched benchmarks

@mdrxy mdrxy added the integration Related to a provider partner package integration label Aug 8, 2025
@mdrxy mdrxy changed the title fix(openai): ainvoke uses async _aget_response; add async tests fix(openai): ainvoke uses async _aget_response; add async tests Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration Related to a provider partner package integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants