Skip to content

feat: Centralize host-to-provider & model-to-system Resolution Helpers#2919

Open
ialisaleh wants to merge 3 commits intoArize-ai:mainfrom
ialisaleh:alisaleh/ticket-1739-centralize
Open

feat: Centralize host-to-provider & model-to-system Resolution Helpers#2919
ialisaleh wants to merge 3 commits intoArize-ai:mainfrom
ialisaleh:alisaleh/ticket-1739-centralize

Conversation

@ialisaleh
Copy link
Copy Markdown
Collaborator

@ialisaleh ialisaleh commented Mar 25, 2026

Refs #1739

I added get_provider_from_host and get_system_from_model to the common package to centralize LLM provider and system inference helpers that were previously duplicated across multiple instrumentation packages.

This PR includes updated OpenInferenceLLMProviderValues and OpenInferenceLLMSystemValues enums with the full set of supported providers, data-driven prefix/suffix mapping dicts replacing ad-hoc if/elif chains, and a parametrized test suite covering all values and edge cases.

Once this is released, a follow-up PR will remove the duplicated helpers from each package in favor of importing from common.

@ialisaleh ialisaleh marked this pull request as ready for review March 25, 2026 18:04
@ialisaleh ialisaleh requested a review from a team as a code owner March 25, 2026 18:04
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Mar 25, 2026
@caroger caroger requested a review from axiomofjoy March 26, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant