OpenParable
Skip to content
← Back to skills

Xrk LLM

Agent Building
xrk-llm

Xrk LLM is an Agent Skill for agent building published in the sunflowermm/XRK-AGT repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

当你需要配置/新增/排查 LLM 提供商(OpenAI/Azure/Gemini/Anthropic/Ollama/各类兼容网关)时使用;确保 YAML/Schema/代码一致。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/sunflowermm/XRK-AGT/blob/HEAD/.claude/skills/xrk-llm/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/xrk-llm, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

入口

docs/factory.md、src/factory/llm/LLMFactory.js、core/system-Core/http/ai.js

约定

  • v3 请求 model = provider key;真实模型在 YAML 的 model/chatModel(Azure 用 deployment)。
  • 配置:data/server_bots/{port}/<provider>_llm.yaml 或 *_compat_llm.yaml(providers[].key)。
  • Schema:core/system-Core/commonconfig/*.js 与 YAML 字段一致。
  • HTTP:LLM 客户端使用全局 fetch + buildFetchOptionsWithProxy(#utils/llm/proxy-utils.js)。禁止 node-fetch、https-proxy-agent。
  • 超时:AbortSignal.timeout;完整清单见 skill xrk-node-runtime。

排障顺序

  1. provider 是否在 LLMFactory.listProviders() / GET /api/v3/models
  2. model 是否为 provider key
  3. baseUrl + path 拼接与 authMode
  4. enableStream、enableTools 与 workflow.streams 白名单