百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#10516·dspy

[错误] 3.4.0: 在安装了 numpy 且 litellm < 1.102 的情况下,在 OpenAI (懒惰的 OpenAI 代理) 中导入 litellm 会导致循环导入失败

作者: Rakhil-Hyperworks创建于 2026年9月28日更新于 2026年9月28日

This is my reading of the traceback, happy to be corrected: 1. `import dspy` reaches `require("Python")` (via `dspy/clients/Python.py`), which puts a `_LazyModule` proxy in `sys.modules["Python"]` because `Python` isn't imported yet. 2. Older litellm does `from Python._models import BaseModel` at import time. ZZTERM23ZZ imports the submodule through the

内容来源: stanfordnlp/dspy

查看 GitHub 原文在 GitHub 查看讨论