mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-19 12:06:42 +08:00
Fix: aspose-slide issue. (#11935)
### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user