custom-model-config

Configure custom AI models for WorkBuddy by editing models.json.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "custom-model-config" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ebb9b59ace13eba7558a309aadd5b805afdfd3843dd12b109903736ce037707e. Verify the upstream source and version against https://skillhub.cn/skills/user_81ede3c9/ruiday-skill-20260701 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Configure custom AI models for WorkBuddy by editing models.json.

0 Downloads

Introduction source: third_party · user_81ede3c9 · 1.0.0 Reference

SkillPi interpretation

Tasks
Configure custom AI models for WorkBuddy by editing the models.json
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: custom-model-config
description: Configure custom AI models for WorkBuddy by editing the models.json
  file. This skill should be used when the user wants to add, list, update,
  remove, or validate custom model configurations in WorkBuddy. Triggers include
  phrases like add a custom model, configure model, set up API key, connect
  OpenAI GPT Claude Kimi Qwen DeepSeek GLM to WorkBuddy, custom model settings,
  or any request related to managing AI model providers in the WorkBuddy desktop
  application.
agent_created: true
disable: true

Custom Model Config

Overview

Manage custom AI model configurations for WorkBuddy by editing the ~/.workbuddy/models.json file. This skill enables adding OpenAI-compatible model providers (OpenAI, Anthropic-via-proxy, Kimi, Qwen/通义千问, DeepSeek, GLM/智谱, MiniMax, etc.), listing existing configurations, updating model settings, removing models, and validating configurations.

WorkBuddy loads custom models from ~/.workbuddy/models.json at startup and watches the file for live changes — no restart required. Custom models appear in the model selector prefixed with custom-local: (e.g., custom-local:gpt-5.4).

Configuration File

Path: ~/.workbuddy/models.json (on Windows: C:\Users\<username>\.workbuddy\models.json)

Format: JSON array of model objects. If the file does not exist, create it with an empty array [].

Model Object Schema

Each object in the array supports the following fields:

Field Type Required Description
id string Yes Unique model identifier. Used internally as custom-local:<id>. Must be alphanumeric with hyphens (e.g., gpt-5.4, kimi-k2.6, qwen-max).
name string Yes Human-readable display name shown in the model selector UI.
vendor string Yes Provider/vendor label (e.g., Custom, OpenAI, Kimi Coding Plan).
url string Yes Full API endpoint URL for chat completions. Must be OpenAI-compatible (ends with /chat/completions or is a compatible base URL).
apiKey string Yes API key for authentication. Sent as Authorization: Bearer <apiKey>.
supportsToolCall boolean No Whether the model supports function/tool calling. Default: false. Set true for models with function-calling capability.
supportsImages boolean No Whether the model accepts image inputs (multimodal). Default: false.
supportsReasoning boolean No Whether the model supports reasoning/thinking mode. Default: false. Set true for models like GPT-o1, DeepSeek-R1, etc.
useCustomProtocol boolean No Whether to use a custom protocol instead of standard OpenAI-compatible format. Default: false. Leave false for all standard OpenAI-compatible APIs.

Example Configuration

[
  {
    "id": "gpt-5.4",
    "name": "GPT-5.4",
    "vendor": "OpenAI",
    "url": "https://api.openai.com/v1/chat/completions",
    "apiKey": "sk-xxxxxxxxxxxxxxxxxxxx",
    "supportsToolCall": true,
    "supportsImages": true,
    "supportsReasoning": true,
    "useCustomProtocol": false
  },
  {
    "id": "kimi-k2.6",
    "name": "Kimi K2.6",
    "vendor": "Kimi Coding Plan",
    "url": "https://api.kimi.com/coding/v1",
    "apiKey": "sk-xxxxxxxxxxxxxxxxxxxx",
    "supportsToolCall": true,
    "supportsImages": true,
    "supportsReasoning": true
  }
]

Workflow: Add a Custom Model

  1. Read the existing ~/.workbuddy/models.json file. If it does not exist, initialize with [].
  2. Collect the required information from the user:
    • Model ID: A unique identifier (e.g., gpt-5.4, deepseek-r1). Ask the user or infer from the provider/model name.
    • Display Name: Human-readable name for the selector UI.
    • Provider/Vendor: Which AI provider (OpenAI, DeepSeek, Kimi, Qwen, GLM, etc.).
    • API URL: The endpoint URL. Consult references/providers.md for common provider URLs, or ask the user for the exact endpoint.
    • API Key: The secret key. Never display the full key in the response — mask it (e.g., sk-xxxx...xxxx).
    • Capability flags: Whether the model supports tool calling, image inputs, and reasoning. Consult references/providers.md for known capabilities, or ask the user.
  3. Construct the model object with all fields.
  4. Check for duplicate id — if the ID already exists, ask the user whether to update or choose a new ID.
  5. Append the new object to the array.
  6. Write the updated JSON back to ~/.workbuddy/models.json with proper formatting (2-space indentation, UTF-8 encoding).
  7. Inform the user that the model has been added and will appear as custom-local:<id> in the model selector. Changes take effect immediately (hot-reload).

Workflow: List Custom Models

  1. Read ~/.workbuddy/models.json.
  2. If the file does not exist or is empty, report that no custom models are configured.
  3. Present each model in a readable format: ID, name, vendor, URL (masked API key), and capability flags.
  4. Never display full API keys — always mask them as sk-xxxx...last4.

Workflow: Update a Custom Model

  1. Read ~/.workbuddy/models.json.
  2. Identify the model to update by id (ask the user which one if multiple exist).
  3. Apply the requested changes (e.g., update API key, change URL, toggle capability flags).
  4. Write the updated JSON back to the file.
  5. Confirm the changes to the user.

Workflow: Remove a Custom Model

  1. Read ~/.workbuddy/models.json.
  2. Identify the model to remove by id.
  3. Remove the object from the array.
  4. Write the updated JSON back to the file.
  5. Confirm removal to the user.

Workflow: Validate Configuration

Run the validation script to check configuration integrity:

python scripts/validate_models.py

The script checks:

  • JSON syntax validity
  • Required fields present for each model
  • URL format correctness (must start with http:// or https://)
  • API key presence and non-emptiness
  • No duplicate model IDs
  • Optional: API connectivity test (sends a minimal test request)

Pass --test-connection to also test API reachability:

python scripts/validate_models.py --test-connection

Security Guidelines

  • API Key Handling: API keys are secrets. When displaying model configurations, always mask keys as sk-xxxx...last4. Never log full keys or include them in response text.
  • File Permissions: The models.json file contains sensitive API keys. Do not share its contents publicly or commit it to version control.
  • User Confirmation: Always confirm with the user before overwriting or removing existing model configurations.
  • No Key Guessing: Never fabricate or guess API keys. Always obtain them from the user.

Common Provider Quick Reference

For detailed provider information (URLs, capability flags, notes), refer to references/providers.md. Common providers include:

Provider URL Pattern Tool Call Images Reasoning
OpenAI https://api.openai.com/v1/chat/completions Yes Yes Yes (o-series)
DeepSeek https://api.deepseek.com/v1/chat/completions Yes No Yes (R1)
Kimi (Moonshot) https://api.moonshot.cn/v1/chat/completions Yes No No
Qwen (DashScope) https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions Yes Yes (VL) No
GLM (Zhipu) https://open.bigmodel.cn/api/paas/v4/chat/completions Yes Yes (VL) No
MiniMax https://api.minimax.chat/v1/text/chatcompletion_v2 Yes No No
SiliconFlow https://api.siliconflow.cn/v1/chat/completions Yes Yes Yes
Ollama (local) http://localhost:11434/v1/chat/completions Yes No No
vLLM (local) http://localhost:8000/v1/chat/completions Yes No No

Troubleshooting

  • Model not appearing in selector: Verify models.json is valid JSON (run validation script). Check that the id field is unique and alphanumeric.
  • API errors when using custom model: Verify the URL is correct and OpenAI-compatible. Check that the API key is valid and has sufficient credits. Some providers require specific URL paths.
  • Tool calling not working: Ensure supportsToolCall is set to true. Not all models support function calling even if the API endpoint accepts the parameter.
  • Reasoning/thinking mode not available: Ensure supportsReasoning is true and the model actually supports it (e.g., GPT-o1, DeepSeek-R1, Claude with extended thinking).
  • Enterprise policy restrictions: In enterprise environments, custom model usage may be restricted by admin policy. If custom models are not available, check with the workspace administrator.

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供完整的自定义 AI 模型管理工作流(增删改查+验证)
  • 覆盖主流厂商(OpenAI、DeepSeek、Kimi、Qwen 等)及本地部署场景
  • 解决用户接入非官方模型的核心痛点,属高频刚需功能
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包含 add/configure/connect/list/update/remove/validate 等关键动作
  • 明确列举主流 AI 厂商名称,边界清晰不易误触
Structure and Standards90/100

Highlights

  • 五大工作流(Add/List/Update/Remove/Validate)步骤清晰完整
  • 提供详细 JSON schema、示例配置及安全规范
  • frontmatter 完整,文档结构规范
Execution Reliability90/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    主文档引用了 scripts/validate_models.py 和 references/providers.md 两个外部文件,但未在 Skill 包中提供

    Recommendation: 请补充这两个文件,或移除相关引用并改为内联说明

Highlights

  • 提供 JSON schema 验证、重复 ID 检查、API key 掩码等可靠性机制
  • 包含用户确认流程和文件权限安全提醒
  • 支持热重载,无需重启即可生效
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • api.deepseek.com
  • api.kimi.com
  • api.minimax.chat
  • api.moonshot.cn
  • api.openai.com
  • api.siliconflow.cn
  • dashscope.aliyuncs.com
  • localhost
  • open.bigmodel.cn

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.