mirror of
https://github.com/Shubhamsaboo/awesome-llm-apps.git
synced 2026-07-18 02:09:32 -05:00
[PR #289] [CLOSED] fix: 更新Windows平台的事件循环策略并修正README中的路径 #8705
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Shubhamsaboo/awesome-llm-apps/pull/289
Author: @jackal-black
Created: 7/28/2025
Status: ❌ Closed
Base:
main← Head:main📝 Commits (2)
a73f663fix: 更新Windows平台的事件循环策略并修正README中的路径93c33f2feat: 添加对DeepSeek模型的支持📊 Changes
5 files changed (+22 additions, -6 deletions)
View changed files
📝
advanced_ai_agents/autonomous_game_playing_agent_apps/ai_tic_tac_toe_agent/README.md(+4 -1)📝
advanced_ai_agents/autonomous_game_playing_agent_apps/ai_tic_tac_toe_agent/agents.py(+4 -1)📝
advanced_ai_agents/autonomous_game_playing_agent_apps/ai_tic_tac_toe_agent/app.py(+7 -2)📝
starter_ai_agents/ai_meme_generator_agent_browseruse/README.md(+1 -1)📝
starter_ai_agents/ai_meme_generator_agent_browseruse/ai_meme_generator_agent.py(+6 -1)📄 Description
修改内容
在AI meme生成器代码中添加了Windows特定的asyncio事件循环策略,以解决Windows环境下可能遇到的异步操作错误。
技术细节
添加了对Windows平台的检测(sys.platform == "win32")
为Windows环境设置了WindowsProactorEventLoopPolicy作为默认事件循环策略
这解决了在Windows上运行Streamlit应用时可能遇到的asyncio相关错误
为什么需要这个修复
在Windows平台上,asyncio默认使用的事件循环实现可能与某些操作不兼容,特别是涉及到网络和进程操作时。这个修改确保了meme生成器在Windows上能够正常执行异步操作,提高了跨平台兼容性。
测试情况
已在Windows 10环境下测试,修复后应用能够正常运行并生成meme图像。
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.