insight Simon Willison 2026-08-13T19:37 正文 ok 163 words

llm-gemini 0.33 发布:支持 Gemini 3.7 Flash 与新版嵌入模型

英文标题:llm-gemini 0.33

`llm-gemini` 0.33 新增对 Gemini 3.7 Flash、`gemini-3.6-flash`、`gemini-3.5-flash-lite` 以及两款嵌入模型的支持。该插件同时升级以兼容 LLM 0.32,使开发者能够查看推理轨迹,并通过 `CodeExecution` 启用服务端工具。作者以“骑自行车的鹈鹕”测试了 Gemini 3.7 Flash 的不同思考力度,指出其高思考力度下的图像效果出色;但生成的 SVG 在 Safari 与 Firefox、Chrome 中存在渲染兼容性差异。
打开原文相关 6 · 机会 1
media107.6 KB media80.0 KB

中文

距离上一次 llm-gemini 发布已经过去一段时间。本次插件版本新增支持今日发布的 Gemini 3.7 Flash,以及 gemini-3.6-flash、gemini-3.5-flash-lite 和两款嵌入模型 gemini-embedding-2、gemini-embedding-001。

该插件还升级了对 LLM 0.32 的兼容性,这意味着现在可以查看推理轨迹,也可以使用如下模式启用服务端工具:

llm -m gemini-3.7-flash -T CodeExecution \
  'use python to calculate (factorial of 13) * 3'

我让 Gemini 3.7 Flash 画出一些骑自行车的鹈鹕,并分别设置为高、中、低思考力度(3.6 Flash 中提供的最小思考力度选项,已在 3.7 中移除)。下面是高思考力度的版本,效果相当不错:

这只鹈鹕骑着一辆很酷的弧形绿色自行车,车筐里有一条鱼,系着一条漂亮的红白波点围巾,还戴着船长帽。

不过有一个问题:这里展示的鹈鹕图像由 Safari 渲染。由于 Safari 对空的 SVG <filter> 元素比 Firefox 和 Chrome 更宽容,后两种浏览器会以不同方式渲染它。

它们仍会显示自行车,但鹈鹕完全消失了!

同一张图像,但鹈鹕完全消失了,只剩下自行车。

English / 原文

It's been a while since the last llm-gemini release. This version of the plugin adds support for today's Gemini 3.7 Flash release, plus gemini-3.6-flash, gemini-3.5-flash-lite and two embedding models gemini-embedding-2 and gemini-embedding-001.

The plugin is also upgraded for compatibility with LLM 0.32, which means you can now see reasoning traces and you can also enable server-side tools using this pattern:

llm -m gemini-3.7-flash -T CodeExecution \
  'use python to calculate (factorial of 13) * 3'

I had Gemini 3.7 Flash draw me some pelicans riding bicycles at high, medium, and low thinking efforts (minimal, which was an option in 3.6 Flash, has been removed in 3.7.) Here's the high level one, which is pretty great:

This pelican has  a very cool curved green bicycle, a fish in its basket, a lovely red and white spotted scarf and a captain's hat

One catch though: the pelican I showed here was rendered with Safari. Both Firefox and Chrome render it differently, due to Safari being more tolerant of empty SVG <filter> elements than those other two browsers.

They still display the bicycle, but the pelican is missing entirely!

The same image except the pelican is entirely missing - it's just the bicycle.