بنقرة واحدة
testing-sdk-models
Test SDK connectivity with third-party model providers (GLM, MiniMax, etc.).
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Test SDK connectivity with third-party model providers (GLM, MiniMax, etc.).
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
整理 Downloads 根目录文件,按类型分类到对应文件夹。对书籍目录进一步按主题归类,并维护书籍清单.md。操作前必须获取用户授权,不直接删除文件。
Scan, clean, back up, and uninstall AI dev tools on macOS.
Download YouTube transcripts, subtitles, and cover images by URL or video ID.
一键搭建项目文档系统骨架(核心三文档 + c.md + jobs/legacy 流转 + Agents.md 约定)。当用户要求初始化文档系统、搭建文档结构、或为新项目创建文档骨架时使用。
Audit agent config health across all layers. Run periodically or when collaboration feels off.
Write session summaries and rewrite work-notes into articles.
| name | testing-sdk-models |
| description | Test SDK connectivity with third-party model providers (GLM, MiniMax, etc.). |
| author | Henri |
| created | 2026-03-15 |
单一来源:本 skill 的唯一实体在
henri_skills仓库中,~/.claude/skills/等均为软链接。编辑时请直接修改henri_skills中的文件。
测试两套 SDK 与第三方 model provider 的连通性。
henri_env with claude_agent_sdk and openai-agents installed~/.configanthropic/keys/ (e.g., glm, minimax)export ANTHROPIC_API_KEY=..., ANTHROPIC_BASE_URL=..., ANTHROPIC_MODEL=...# Test default provider (glm)
source ~/miniconda3/etc/profile.d/conda.sh && conda activate henri_env && python scripts/test_anthropic_sdk.py
# Test specific provider
python scripts/test_anthropic_sdk.py minimax
# Test all available providers
python scripts/test_anthropic_sdk.py --all
# Use original Claude (no provider override)
python scripts/test_anthropic_sdk.py claude
# Test default provider (glm)
source ~/miniconda3/etc/profile.d/conda.sh && conda activate henri_env && python scripts/test_openai_sdk.py
# Test specific provider
python scripts/test_openai_sdk.py minimax
# Test all available providers
python scripts/test_openai_sdk.py --all
通过 --switch 调用终端的 switch_api.sh,自动 source 配置并测试:
# 切换到 glm 并测试
python scripts/test_anthropic_sdk.py --switch glm
# 切换到 minimax 并测试
python scripts/test_anthropic_sdk.py --switch minimax
# 切回官方 Claude 并测试
python scripts/test_anthropic_sdk.py --switch claude
# 列出所有可用 provider
python scripts/test_anthropic_sdk.py --switch --list
也可以在 Amp 中直接 source switch_api.sh 来切换(不测试):
source scripts/switch_api.sh glm
source scripts/switch_api.sh --list
test_anthropic_sdk.pytest_openai_sdk.py--all flag--switch <provider>~/.configanthropic/keys/<provider> exists and has valid formatList providers by checking ~/.configanthropic/keys/:
ls ~/.configanthropic/keys/
CLAUDECODE env var; if running manually, unset CLAUDECODE firstexport lines