LangChain出新版了,接上了OpenAI 3.0 SDK,还支持Gemini 3.7 Flash,修了一堆工具调用的坑,用起来更稳。
LangChain OSS发布新版本,新增对OpenAI 3.0 SDK(基于httpx2)的支持,并兼容gemini-3.7-flash。工具调用和结构化输出功能得到增强,错误提示更清晰,且验证时尊重pydantic别名。流式处理时token用量回调错误及OpenRouter成本元数据问题已修复。针对异常Anthropic内容块增加了防护,同时保留提示词模板中的非字符串与非字典项。
new langchain oss release!
new langchain oss release! LangChain OSS @LangChain_OSS What's new in LangChain? 🚀 🔌 Support for OpenAI's 3.0 SDK (using httpx2) ✨ Support for gemini-3.7-flash Plus a wave of core reliability fixes from external contributors: 🛠️ Tool calling & structured output: clearer errors, respect for pydantic aliases when validating tool input github.com/RinZ27 AU github.com/kinch-tech v7 github.com/charan16 0Ik) 📊 Usage metadata fixes: token usage callback bugs, and cost metadata when streaming OpenRout github.com/Solaris-star XW github.com/iroiro147 obGj) 🧱 Content & prompt hardening: guard malformed Anthropic content blocks, and preserve non-str/non-dict items in prompt templates for content blo github.com/Oxygen56 sB github.com/zerafachris 4DmxC) Huge thanks to everyone who contributed! 🙏 🔗 View Quoted Tweet 💬 1 🔄 0 ❤️ 10 👀 1717 📊 2 ⚡