← 文章 / 开源项目
Simon Willison 3小时前 · 2026-09-23 01:06:23 · 1 阅读

llm-typesafe 0.1a0 发布:支持 TypeSafe AI 的 Jev 模型

Release llm-typesafe 0.1a0 — 用于访问 Jev 及其他 TypeSafe AI 模型的 LLM 插件

我开发了这款 LLM 新插件,以支持 TypeSafe AI 发布的 Jev 模型。安装命令如下:

llm install llm-typesafe

随后设置 API 密钥(点此获取,等待名单处理得相当快):

llm keys set typesafe
# Paste key

现在你可以提出如下类型的“noul”(布尔值)问题:

llm -m jev 'Please refund my last payment.' \
  -s 'Does this message explicitly request a refund?'

输出示例:

{"type": "noul", "noul": 0.99}

或者提出选择类问题:

cat message.txt | llm -m jev \
  -s 'Which team should handle this message? If billing and technical issues both occur, choose billing.' \
  -o answer_type choice \
  -o criteria '{
    "billing":"Charges, invoices, payments, or refunds",
    "technical":"Problems installing or using the product",
    "other":"Neither category fits"
  }'

或者提出评分类问题:

cat report.txt | llm -m jev \
  -s 'How reproducible is the problem described in this report?' \
  -o answer_type score \
  -o criteria '[
    "No reproduction instructions",
    "Some instructions, but important steps are missing",
    "Complete steps with expected and actual results"
  ]'

更多细节请参见 README

原始来源: Simon Willison

评论 (0)