PulseAugur
实时 14:15:18
English(EN) My Tool-Calling Loop Worked Fine, Until Compliance Wanted a Second Model to Check It

开发者通过统一库简化了跨提供商的 LLM 工具调用

一位开发者在医疗保健应用程序中集成了不同 LLM 提供商进行工具调用循环时遇到了挑战。最初,该循环与 OpenAI 的 SDK 配合使用时运行流畅,但合规要求需要来自另一提供商 Anthropic 的第二个模型来交叉检查结果。开发者发现 Anthropic 的工具使用 API 与 OpenAI 的结构不同,需要重写该循环。然而,`@aviasole/shapecraft` 库通过提供统一的接口简化了这一过程,允许将相同的工具调用逻辑应用于 OpenAI 的 GPT-4o mini 和 Anthropic 的 Claude Haiku 4.5,从而以最小的代码更改解决了集成问题。 AI

影响 简化了跨提供商的 LLM 集成,可能加速需要多个模型的应用程序的开发。

排序理由 开发者博客文章,详细介绍了使用特定库克服不同 LLM API 之间集成挑战的过程。

在 dev.to — LLM tag 阅读 →

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

开发者通过统一库简化了跨提供商的 LLM 工具调用

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · deep patel ·

    My Tool-Calling Loop Worked Fine, Until Compliance Wanted a Second Model to Check It

    <p>Small ask, on paper. A clinician types something like "any allergy conflicts for this patient's current meds?", and before the model answers it needs to actually go get the medication list and the allergy list rather than guess at what's plausible. Two functions, both of which…