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: if chat_model:
res = await asyncio.wait_for( res = await asyncio.wait_for(
asyncio.to_thread( chat_model.async_chat("Nothing special.", [{"role": "user", "content": "Are you strong enough!?"}]),
chat_model.chat,
"Nothing special.",
[{"role": "user", "content": "Are you strong enough!?"}],
{}
),
timeout=30 timeout=30
) )
if "**ERROR**" in res: if "**ERROR**" in res:

View File

@ -14,7 +14,7 @@ dependencies = [
"azure-storage-file-datalake==12.16.0", "azure-storage-file-datalake==12.16.0",
"anthropic==0.34.1", "anthropic==0.34.1",
"arxiv==2.1.3", "arxiv==2.1.3",
"aspose-slides>=25.10.0,<26.0.0; platform_machine == 'x86_64' or (sys_platform == 'darwin' and platform_machine == 'arm64')", "aspose-slides==24.7.0; platform_machine == 'x86_64' or (sys_platform == 'darwin' and platform_machine == 'arm64')",
"atlassian-python-api==4.0.7", "atlassian-python-api==4.0.7",
"beartype>=0.20.0,<1.0.0", "beartype>=0.20.0,<1.0.0",
"bio==1.7.1", "bio==1.7.1",

1107
uv.lock generated

File diff suppressed because it is too large Load Diff