DSPy 3.5 发布:更轻更快的 LM 基础层
原标题:3.5.0
AI 摘要
DSPy 发布 3.5.0 版本,将 RLM、Flex、GEPA 从实验模块转为正式核心模块,ReActV2 取代 ReAct,并默认启用 XMLAdapter 与自动 API 路由。该版本引入轻量 lm15 引擎,使 LiteLLM 和 OpenAI Python 库变为可选依赖,默认安装体积从 206.7 MiB 降至 30.9 MiB,依赖数从 65 降至 25,冷启动导入时间从 1.01 秒降至 0.49 秒。同时新增 RLM 对话历史保存、图像处理与富工具结果能力,并默认启用磁盘缓存安全加载。
正文节选
# DSPy 3.5: A Lighter, Faster Foundation DSPy 3.5 brings a lighter LM layer, graduated core modules, and new History and image capabilities for RLM. ## Upgrading from 3.4.1 **This release changes prompts, defaults and APIs.** Read the [upgrade guide](https://dspy.ai/current/community/upgrading-to-3-5/) for breaking changes, migration steps and compatibility limits, and re-evaluate optimized programs. ## Highlights ### RLM, Flex and GEPA graduate `dspy.RLM`, `dspy.Flex` and `dsp