发布 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。