routerbase-api-integration-cn
Skill18 starsChanged 6 days agoMITView on GitHub
当用户需要把应用接入 OpenAI 兼容模型网关、迁移 SDK 调用,或为 RouterBase 编写安全 API Key 配置说明时使用。
- Reads credentials
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ax-extract-workflowSkill
- conversation-json-to-mdSkill
- feature-doc-splitterSkill
- frontend-quality-guardrailsSkill
- git-commit-onlySkill
- git-pushing-fastSkill
- git-push-secondary-merge-primarySkill
- git-stepwise-commitSkill
- git-weekly-reportSkill
- linkedinSkill
- logo-design-boardSkill
- mac-software-storage-cleanupSkill
- multi-lang-readmeSkill
- novel-writerSkill
- react-component-hook-guidelinesSkill
- routerbase-api-integrationSkill
- routerbase-media-generationSkill
- routerbase-model-routingSkill
- topic-bookmarks-reorganizerSkill
- tree-ring-memorySkill
- tweetclaw-twitter-automationSkill
- ui-layout-analyzerSkill
- wechat-theme-extractorSkill
- weixin-article-to-obsidianSkill
- xquik-dataSkill
- x-twitter-scraperSkill
- yuque-lakebook-exportSkill
- ax-extract-workflow-cnSkill
- conversation-json-to-md-cnSkill
- feature-doc-splitter-cnSkill
- frontend-quality-guardrails-cnSkill
- git-commit-only-cnSkill
- git-pushing-fast-cnSkill
- git-push-secondary-merge-primary-cnSkill
- git-stepwise-commit-cnSkill
- git-weekly-report-cnSkill
- linkedin-cnSkill
- logo-design-board-cnSkill
- mac-software-storage-cleanup-cnSkill
- multi-lang-readme-cnSkill
- novel-writer-cnSkill
- react-component-hook-guidelines-cnSkill
- routerbase-media-generation-cnSkill
- routerbase-model-routing-cnSkill
- topic-bookmarks-reorganizer-cnSkill
- tree-ring-memory-cnSkill
- tweetclaw-twitter-automation-cnSkill
- ui-layout-analyzer-cnSkill
- wechat-theme-extractor-cnSkill
- weixin-article-to-obsidian-cnSkill
- xquik-data-cnSkill
- x-twitter-scraper-cnSkill
- yuque-lakebook-export-cnSkill
The file
Files
RouterBase API 集成
Overview
使用 routerbase 作为 OpenAI 兼容模型网关接入应用。本技能覆盖 SDK 迁移、base URL 配置、流式输出、tool calling、JSON mode、视觉输入、请求校验、错误处理和凭据安全。
何时使用
当用户提出以下需求时使用本技能:
- 将 OpenAI 兼容 SDK 调用迁移到 RouterBase
- 把
base_url或baseURL设置为https://routerbase.com/v1 - 安全配置 RouterBase API Key,避免泄露密钥
- 实现 chat completions、流式输出、tool calling、JSON mode 或视觉输入
- 为 Python、JavaScript、curl、LangChain、LlamaIndex、Vercel AI SDK、Cursor、Continue 等客户端编写 RouterBase 接入示例
不要使用
以下场景不应使用本技能:
- 发布、记录或保存真实 API Key
- 猜测用户未提供且上游文档没有说明的供应商行为
- 用户只需要模型选择建议时,重写已有可用的供应商集成
使用说明
- 识别用户当前使用的客户端、语言、模型 ID 和部署环境。
- 尽量保留现有 OpenAI 兼容 SDK,只改 base URL、模型和本地密钥配置。
- 示例中使用
<ROUTERBASE_API_KEY>等占位符。 - API Key 必须保留在服务端或本地安全环境中,不写入 git。
- 在建议大范围改动前,优先提供一个小型测试请求。
- 输出校验清单,覆盖预期状态码、响应结构、超时处理和日志脱敏要求。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

