Fix: aspose-slide issue. (#11935)

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-12-12 20:16:18 +08:00
committed by GitHub
parent 2b260901df
commit 44dec89f1f
3 changed files with 656 additions and 460 deletions

View File

@ -688,12 +688,7 @@ async def is_strong_enough(chat_model, embedding_model):
if chat_model:
res = await asyncio.wait_for(
asyncio.to_thread(
chat_model.chat,
"Nothing special.",
[{"role": "user", "content": "Are you strong enough!?"}],
{}
),
chat_model.async_chat("Nothing special.", [{"role": "user", "content": "Are you strong enough!?"}]),
timeout=30
)
if "**ERROR**" in res: