Skip to main content

llm-call

Call a configured LLM model directly through the local script using provider settings from config.yaml. Use this skill when the user wants a raw model call, prompt test, provider/model comparison, or asks to send text to a specific GPT/Gemini model. Do not use it for normal Mavis agent execution.

ソース情報

リポジトリ
MiniMax-AI/minimax-code
ソースの最終更新活動
2026年9月18日 11:25
検出された SKILL.md の言語
英語
スター
1,959
フォーク
247

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

ファイルエクスプローラー
2 ファイル

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
llm-call
description
Call a configured LLM model directly through the local script using provider settings from config.yaml. Use this skill when the user wants a raw model call, prompt test, provider/model comparison, or asks to send text to a specific GPT/Gemini model. Do not use it for normal Mavis agent execution.
descriptions
{"zh-Hans":"直接调用配置好的 LLM 模型,用于原始模型调用、prompt 测试和 provider/model 对比。"}
# LLM Call Replace `<skill_dir>` with the actual skill path shown by the loader. ## Procedure 1. Read the user's target model and prompt. 2. **Always pass `--model provider/model`**. If the user didn't name a specific model, pick a sensible default or run `--list` first to check available models. 3. Pass `--system`, `--max-tokens`, `--temperature`, `--stream`, or `--config` only when the task clearly requires them. 4. The script auto-detects config.yaml from the parent data dir hint when available, falling back to `{{DATA_DIR}}/config.yaml`. Use `--config` when calling a non-default profile explicitly. 5. Return the model output directly. If the call fails, summarize the provider or config error without inventing a fallback. ## Protocol mapping - `@ai-sdk/anthropic` -> `messages` - `@ai-sdk/openai` -> `chat/completions` - `@ai-sdk/google` -> `models/{model}:generateContent` ## Examples The script is a plain `.py` file — pick the Python launcher that exists on the host: | Platform | Launcher | |---|---| | macOS / Linux | `python3` (preferred) or `python` if it points at Python 3 | | Windows | `py -3` (preferred) or `python` | Example invocations (substitute the launcher above for `<py>`): ```bash <py> <skill_dir>/scripts/llm_call.py --model gemini/gemini-2.5-pro --system "Be brief" --prompt "Summarize this" <py> <skill_dir>/scripts/llm_call.py --model minimax-test/MiniMax-M3 --timeout 600 --stream --prompt "Long planning task" <py> <skill_dir>/scripts/llm_call.py --list ``` Do not assume `python3` exists on Windows — it is not part of a default install. Use `py -3` or the launcher resolved at runtime. ## Failure handling - If config.yaml is missing or incomplete, say which provider or credential is missing. - If the requested model is not configured, ask the user to choose from configured models. - If the HTTP request fails, surface the provider error; do not silently retry with another model.
GitHubで見る