PulseAugur
中
实时 23:40:41
English(EN) An OpenAI tool Mistral rejected: the SDK's strict: null

Mistral AI 在 Python 库中修复了 OpenAI SDK 工具定义错误

mistral-common Python 库中的一个错误,特别是 1.12.0 版本,在转换 OpenAI SDK 的工具定义时导致了问题。OpenAI SDK 默认包含可选参数的 `"strict": null`,而 mistral-common 的 `Function.from_openai` 方法错误地拒绝了它。此问题已在 2026 年 10 月 21 日合并的一个拉取请求中修复,并将包含在 1.12.0 之后的下一个版本中。一种解决方法是在转储 OpenAI 工具定义时排除 null 值。 AI

影响 确保使用各自 Python 库的开发者在 OpenAI 和 Mistral 模型之间实现更顺畅的互操作性。

排序理由 修复了与集成 OpenAI SDK 工具和 Mistral 模型相关的 Python 库的错误。

在 dev.to — LLM tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

Mistral AI 在 Python 库中修复了 OpenAI SDK 工具定义错误

本文如何被排名

Signal score
0 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
修复了与集成 OpenAI SDK 工具和 Mistral 模型相关的 Python 库的错误。
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
2 days old
Coverage has settled into its steady-state source set.

完整方法见我们的编辑标准。

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · ZAKARIA KHCHICHE ·

    An OpenAI tool Mistral rejected: the SDK's strict: null

    <p><strong>TL;DR</strong>: mistral-common's <code>Function.from_openai</code> rejected any tool definition containing <code>"strict": null</code>. That is exactly what the OpenAI SDK produces by default when you dump a tool. My fix (<a href="https://github.com/mistralai/mistral-c…