Skip to content

Fix: use async_chat with sync wrapper in resume parser - #13320

Merged
yingfeng merged 1 commit into
infiniflow:mainfrom
yongtenglei:hotfix/attribute_error_in_resume
Mar 2, 2026
Merged

yingfeng merged 1 commit into
infiniflow:mainfrom
yongtenglei:hotfix/attribute_error_in_resume

Conversation

@yongtenglei

Copy link
Copy Markdown
Member

What problem does this PR solve?

Fix AttributeError when calling llm.chat() in resume parser. LLMBundle only has async_chat method, not chat method. Use _run_coroutine_sync wrapper to call async_chat synchronously.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

Fix AttributeError when calling llm.chat() in resume parser.
LLMBundle only has async_chat method, not chat method.
Use _run_coroutine_sync wrapper to call async_chat synchronously.
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Mar 2, 2026
@yingfeng yingfeng added the ci Continue Integration label Mar 2, 2026
@yingfeng
yingfeng marked this pull request as draft March 2, 2026 11:17
@yingfeng
yingfeng marked this pull request as ready for review March 2, 2026 11:17
@yingfeng
yingfeng merged commit 707de24 into infiniflow:main Mar 2, 2026
1 check passed
@codecov

codecov Bot commented Mar 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.18%. Comparing base (5fc3bd3) to head (f14d4c1).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13320   +/-   ##
=======================================
  Coverage   47.18%   47.18%           
=======================================
  Files          44       44           
  Lines        9748     9748           
  Branches      110      110           
=======================================
  Hits         4600     4600           
  Misses       5135     5135           
  Partials       13       13           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

guptas6est pushed a commit to Nordix/ragflow that referenced this pull request Mar 5, 2026
)

### What problem does this PR solve?

Fix AttributeError when calling llm.chat() in resume parser. LLMBundle
only has async_chat method, not chat method. Use `_run_coroutine_sync`
wrapper to call async_chat synchronously.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
writinwaters pushed a commit to writinwaters/ragflow that referenced this pull request Apr 10, 2026
)

### What problem does this PR solve?

Fix AttributeError when calling llm.chat() in resume parser. LLMBundle
only has async_chat method, not chat method. Use `_run_coroutine_sync`
wrapper to call async_chat synchronously.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
JasleenKaurSethi pushed a commit to stackhpc/ragflow that referenced this pull request Apr 28, 2026
)

### What problem does this PR solve?

Fix AttributeError when calling llm.chat() in resume parser. LLMBundle
only has async_chat method, not chat method. Use `_run_coroutine_sync`
wrapper to call async_chat synchronously.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants