Chat2api Tool Client Replay
Testing & Qualitychat2api-tool-client-replayChat2api Tool Client Replay is an Agent Skill for testing & quality published in the xiaoY233/Chat2API repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when replaying sanitized client tool-calling fixtures against Chat2API with client-specific pass/fail rules.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/xiaoY233/Chat2API/blob/HEAD/skills/chat2api-tool-client-replay/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/chat2api-tool-client-replay, 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.
Chat2API Tool Client Replay
Use this skill to replay fixture scenarios for clients such as Cherry Studio, generic OpenAI tools, or unknown HAR-derived clients.
Rules
- Preserve exact tool names.
- Validate stream and non-stream behavior separately.
- Use profiles for client-specific prompt-protocol expectations.
Commands
CHAT2API_API_KEY=sk_xxx \
node skills/chat2api-tool-client-replay/scripts/replay-client-fixture.mjs \
--fixture backup/har/cherry-studio-fixture.json \
--profile cherry-studio \
--model deepseek-v4-flash
Use --dry-run to check profile, model, and fixture selection without live requests. If the fixture file exists, dry-run parses the fixture schema and reports fixtureExists plus scenarioCount; if it is missing, dry-run still exits successfully with fixtureExists: false.
Profiles
cherry-studio: Cherry Studio headers and visible prompt-tool-use expectations.openai-tools: generic OpenAI-compatible tool-calling expectations.custom-har: empty client headers for replaying sanitized HAR-derived fixtures.