Skip to content

Conversation

@cdoern
Copy link
Collaborator

@cdoern cdoern commented Nov 17, 2025

What does this PR do?

Completes #3732 by removing runtime URL transformations and requiring users to provide full URLs in configuration. All providers now use 'base_url' consistently and respect the exact URL provided without appending paths like /v1 or /openai/v1 at runtime.

BREAKING CHANGE: Users must update configs to include full URL paths (e.g., http://localhost:11434/v1 instead of http://localhost:11434).

Closes #3732

Test Plan

Existing tests should pass even with the URL changes, due to default URLs being altered.

Add unit test to enforce URL standardization across remote inference providers (verifies all use 'base_url' field with HttpUrl | None type)

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 17, 2025
@cdoern
Copy link
Collaborator Author

cdoern commented Nov 17, 2025

need to update the tests :(

@cdoern cdoern force-pushed the url branch 3 times, most recently from 69b4e0b to 5f13ea6 Compare November 17, 2025 20:20
@mergify
Copy link

mergify bot commented Nov 17, 2025

This pull request has merge conflicts that must be resolved before it can be merged. @cdoern please rebase it. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify bot added the needs-rebase label Nov 17, 2025
Completes llamastack#3732 by removing runtime URL transformations and requiring
users to provide full URLs in configuration. All providers now use
'base_url' consistently and respect the exact URL provided without
appending paths like /v1 or /openai/v1 at runtime.

Add unit test to enforce URL standardization across remote inference providers (verifies all use 'base_url' field with HttpUrl | None type)

BREAKING CHANGE: Users must update configs to include full URL paths
(e.g., http://localhost:11434/v1 instead of http://localhost:11434).

Signed-off-by: Charlie Doern <[email protected]>
@ashwinb
Copy link
Contributor

ashwinb commented Nov 18, 2025

lgtm, will leave it to @mattf for the final approval

Copy link
Contributor

@ashwinb ashwinb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

went through it once, looks good to me

@ashwinb ashwinb merged commit d5cd0ee into llamastack:main Nov 19, 2025
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standardize URL Configuration Across Remote Inference Providers

2 participants