The Alternatives Issue For tool owners Sign in

Model name portability

Model name portability is the principle of writing app code that survives swapping the underlying LLM provider (Claude → GPT → Gemini → local) without rewriting prompts, tool definitions, or response parsing.

In more detail

What it means

Tight provider coupling makes vendor-switch painful: different prompt formats, different tool-call schemas, different response shapes. Portability strategies: (1) use a multi-model SDK (Vercel AI SDK, LiteLLM, OpenRouter) that normalizes the request / response shape, (2) write prompts in vendor-neutral natural language (no `<system>` tags or vendor-specific markers), (3) use structured output via JSON schema (which all providers support similarly), (4) keep tool definitions in OpenAI / MCP format. Trade-offs: portability sometimes means missing vendor-specific features (Anthropic's prompt caching, OpenAI's function-calling strict mode, Google's grounding). Production reality: most teams stay multi-vendor for cost / fallback reasons, so portability work is rarely wasted.

Part 1 of 2

When to use it, and when not

Use it for

  • Any production app to avoid lock-in.
  • Multi-vendor cost / fallback strategies.

Part 2 of 2

Common mistakes

  • Hardcoding one vendor's tool-call schema — painful to migrate later.
  • Over-engineering portability for one-off prototypes — premature.

FAQ

Questions readers ask.

What is model name portability?

Model name portability is the principle of writing app code that survives swapping the underlying LLM provider (Claude → GPT → Gemini → local) without rewriting prompts, tool definitions, or response parsing.

When should you use model name portability?

Any production app to avoid lock-in. Multi-vendor cost / fallback strategies.

What are the common mistakes with model name portability?

Hardcoding one vendor's tool-call schema — painful to migrate later. Over-engineering portability for one-off prototypes — premature.

Last updated: 2026-06-01. Raw markdown: https://promtable.com/glossary/model-name-portability.md. Found a mistake? Tell us.