LLM Model Migration Planner
Use live catalog data and explicit workload requirements. Do not claim that metadata comparison proves output quality equivalence.
Quick start
Run from this skill directory:
python scripts/compare_models.py
--source google/gemini-2.5-flash
--target z-ai/glm-5.2
--required-parameter tools
--required-parameter structured_outputs
--monthly-requests 100000
--input-tokens 2000
--output-tokens 500
Use python3 when required. Add --json for machine-readable output.
Migration workflow
- Identify the exact source and target model IDs. If the script reports ambiguity, choose from its candidate IDs instead of guessing.
- Inventory real application requirements before comparing:
- Input/output modalities.
- Minimum context length.
- Tools, reasoning, JSON schema, seed, log probabilities, or other used parameters.
- Typical input/output tokens and monthly request volume.
- Latency, regional, privacy, and provider requirements not present in the public catalog.
- Pass critical capabilities with repeated
--required-parameterand--required-modalityflags. Treat missing required capabilities as blockers. - Review the compatibility report and projected monthly model cost.
- Use the generated staged plan: contract tests, golden-set evaluation, shadow traffic, canary rollout, monitoring, and rollback.
- Keep the original model available until target quality, safety, latency, and cost have been measured on representative traffic.
Interpret risks
BLOCKER: the target lacks an explicitly required modality or parameter, or violates the minimum context.HIGH: major context reduction or projected cost increase above 2×.MEDIUM: implicit capability regression such as losing tools or structured outputs, or cost increase above 1.5×.INFO: capability additions, lower projected cost, or non-blocking metadata differences.
Treat price calculations as estimates. They exclude provider-specific discounts, caching, reasoning tokens, web search, media, and per-request fees unless included in catalog prompt/completion pricing.
Quality and safety validation
Metadata cannot predict answer quality. Build an evaluation set from real sanitized tasks and compare:
- Task success and factual accuracy.
- Structured-output validity and tool-call correctness.
- Refusal, safety, and prompt-injection behavior.
- P50/P95 latency, timeout, and retry rate.
- Input/output token usage and actual billed cost.
- Chinese language quality and domain terminology.
Do not send production data to a new provider before privacy, retention, residency, and contractual requirements are approved.
Read references/migration-evaluation.md when designing the evaluation set, rollout gates, or rollback thresholds.




