Skip to content

Strip API version from configured base URLs - #16

Merged
simo5 merged 1 commit into
mainfrom
strip_v1
Oct 29, 2026
Merged

simo5 merged 1 commit into
mainfrom
strip_v1

Conversation

@simo5

@simo5 simo5 commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Base URLs for OpenAI and Anthropic backends no longer store the API version suffix. The version is now owned by the backend, which exposes an api_version attribute and an api_base_url property that joins the base URL with the version when building requests. This keeps stored configuration version agnostic and makes it possible to support other API versions (or version discovery) without reconfiguring backends.

Added strip_api_version, normalize_backend_base_url and normalize_global_config_base_urls helpers in the common config module. Loading the global configuration now migrates legacy versioned base URLs in place and persists the normalized values back to disk. The interactive config editor and the backend creation prompt also strip any version suffix the user enters.

Tests updated and extended to cover the new helpers and the split between base_url and api_base_url.

Assisted-by: claude-opus-5

Base URLs for OpenAI and Anthropic backends no longer store the API
version suffix. The version is now owned by the backend, which exposes
an `api_version` attribute and an `api_base_url` property that joins the
base URL with the version when building requests. This keeps stored
configuration version agnostic and makes it possible to support other
API versions (or version discovery) without reconfiguring backends.

Added `strip_api_version`, `normalize_backend_base_url` and
`normalize_global_config_base_urls` helpers in the common config module.
Loading the global configuration now migrates legacy versioned base URLs
in place and persists the normalized values back to disk. The interactive
config editor and the backend creation prompt also strip any version
suffix the user enters.

Tests updated and extended to cover the new helpers and the split
between `base_url` and `api_base_url`.

Assisted-by: claude-opus-5
Signed-off-by: Simo Sorce <simo@redhat.com>
@simo5
simo5 merged commit a63cf77 into main Oct 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant