跳到正文
原文
Simon Willison·· 17 天前AI 评分45

LLM 0.37.2 修复 OpenAI API key 误发安全问题

llm 0.37.2

AI 导读

LLM 0.37.2 修复了一项会把已配置的 OpenAI API key 意外发给其他服务商的安全问题。该问题由 Daniel de Araujo 报告,见 GHSA-v9h7-jj4g-f862 与 GHSA-r639-rr7r-x72w。

正文 · 原文

Fixes a security issue reported by Daniel de Araujo in GHSA-v9h7-jj4g-f862 and GHSA-r639-rr7r-x72w.

LLM has a mechanism called extra-openai-models.yaml - now managed by the new-in-0.37 llm openai endpoint add command - for using LLM with OpenAI-compatible API endpoints from other providers.

Daniel reported two ways this could accidentally send your configured OpenAI API key to one of those providers: if the key named by api_key_name had never been stored, or if a responses: true model was run with -o chat_completions 1.

来源:Simon Willison · simonwillison.net