XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

fix: intercept module access for lazy loading, resolve string attribute error, and fix offline GUI crash (#3469) (#3470)

* fix(providers): intercept module access to enforce lazy loading and prevent import bypass * fix(providers): resolve lazy providers properly in AnyProvider to prevent string attribute error * fix(version): gracefully handle network errors when checking for updates to prevent GUI crash * fix(providers): resolve lazy string providers in client and models registry * test: fix provider attribute error by only calling __getattr__ on string providers * fix(providers): resolve string proxy bugs in AnyProvider and RetryProvider, restore fast lazy-loading in models registry * feat(models): map Copilot models (smart, reasoning, study, search) and register CopilotApp in AnyProvider * fix(models): strictly assign CopilotApp modes to pass tests * fix(models): clean up models registry, use CopilotApp aliases --------- Co-authored-by: kqlio67 <kqlio67@users.noreply.github.com>

bea2cfbd
Kqlio <166700875+kqlio67@users.noreply.github.com>
提交于

代码差异

8 个文件 +4426 -4395
Modified etc/unittest/models.py +4 -2
Modified g4f/Provider/CopilotApp.py +4 -4
Modified g4f/Provider/__init__.py +17 -0
Modified g4f/client/__init__.py +1 -1
Modified g4f/providers/any_provider.py +25 -12
Modified g4f/providers/retry_provider.py +4 -1
Modified g4f/version.py +10 -13