Diagnose duplicated API version prefixes in an AI gateway URL
Compare the configured base URL with the path that the SDK actually appends. Two components can each add the same version prefix.
Example
A client configured with a versioned base URL automatically adds a version segment again. The resulting route returns an error before model selection.
What to do
- Inspect the actual request path in the authorized test setup.
- Compare it with the path listed for the compatible endpoint and the SDK’s configuration requirements.
- Fix one source of the prefix and run the same synthetic request again.
How to verify
The SDK sends the intended route exactly once and the result is attributed to the expected integration.
Limits
Different SDKs expect different base URLs. Check the version and method you actually use.