跳到正文
Simon Willison·· 24 天前精选

LLM作者披露并修复两种兼容端点密钥误发路径

AI 导读

Simon Willison说明,LLM使用第三方OpenAI兼容端点时,两种配置组合可能误发用户的OpenAI密钥。一种发生在指定名称的密钥尚未保存时,另一种涉及Responses模型切换到Chat Completions调用路径。作者宣布已修复这些问题。

推荐理由

影响使用兼容端点的密钥隔离,触发条件具体。原文正文+原站 RSS 时间核验;未独立复现,也未确认实际泄露案例。

正文 · 原文

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