mcpField
L
llm-models

llm-models

github.com/inference-shAgent 工作流7891.0k 次安装2 周前更新
代码仓库

关于 llm-models

llm-models 是通过 inference.sh CLI 经 OpenRouter 调用多种语言模型的技能,面向需要在代码、写作、分析和 Agent 工作流中使用 LLM 的用户。它列出不同模型选项,并包含自动选择模型的入口。

主要功能

  1. 01通过 CLI 调用多种语言模型
  2. 02提供不同模型及其应用 ID
  3. 03支持按名称搜索模型应用
  4. 04提供自动选择模型的应用
  5. 05支持传入系统提示词

适用场景

  1. 01生成、审查或调试代码
  2. 02撰写内容、摘要和翻译
  3. 03分析数据或开展研究
  4. 04为 Agent 工作流接入 LLM

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/inference-sh/skills --skill llm-models

安装后在 Claude Code 中输入/llm-models确认已加载。

详细介绍

安装 belt CLI 技能: npx skills add belt-sh/cli

通过 OpenRouter 使用 LLM 模型

通过 inference.sh CLI 访问 100 多种语言模型。

通过 OpenRouter 使用 LLM 模型

快速开始

需要 inference.sh CLI(belt)。安装说明

belt login

# Call Claude Sonnet
belt app run openrouter/claude-sonnet-45 --input '{"prompt": "Explain quantum computing"}'

可用模型

模型App ID最适合
Claude Opus 4.5openrouter/claude-opus-45复杂推理、编码
Claude Sonnet 4.5openrouter/claude-sonnet-45均衡的性能
Claude Haiku 4.5openrouter/claude-haiku-45快速、经济
Gemini 3 Proopenrouter/gemini-3-pro-previewGoogle 最新模型
Kimi K2 Thinkingopenrouter/kimi-k2-thinking多步推理
GLM-4.6openrouter/glm-46开源、编码
Intellect 3openrouter/intellect-3通用用途
任意模型openrouter/any-model自动选择最佳选项

搜索 LLM 应用

belt app search "openrouter"
belt app search "claude"

示例

Claude Opus(最高质量)
belt app run openrouter/claude-opus-45 --input '{
  "prompt": "Write a Python function to detect palindromes with comprehensive tests"
}'
Claude Sonnet(均衡)
belt app run openrouter/claude-sonnet-45 --input '{
  "prompt": "Summarize the key concepts of machine learning"
}'
Claude Haiku(快速且经济)
belt app run openrouter/claude-haiku-45 --input '{
  "prompt": "Translate this to French: Hello, how are you?"
}'
Kimi K2(思考型 Agent)
belt app run openrouter/kimi-k2-thinking --input '{
  "prompt": "Plan a step-by-step approach to build a web scraper"
}'
任意模型(自动选择)
# Automatically picks the most cost-effective model
belt app run openrouter/any-model --input '{
  "prompt": "What is the capital of France?"
}'
使用系统提示词
belt app sample openrouter/claude-sonnet-45 --save input.json

# Edit input.json:
# {
#   "system": "You are a helpful coding assistant",
#   "prompt": "How do I read a file in Python?"
# }

belt app run openrouter/claude-sonnet-45 --input input.json

使用场景

  • 编码: 生成、审查、调试代码
  • 写作: 内容、摘要、翻译
  • 分析: 数据解读、研究
  • Agent: 构建 AI 驱动的工作流
  • 聊天: 对话界面

相关技能

# Full platform skill (all apps)
npx skills add inference-sh/skills@infsh-cli

# Web search (combine with LLMs for RAG)
npx skills add inference-sh/skills@web-search

# Image generation
npx skills add inference-sh/skills@ai-image-generation

# Video generation
npx skills add inference-sh/skills@ai-video-generation

浏览所有应用:belt app list

文档

评论

支持 Markdown