Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/rius/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,8 @@ def shutdown(self) -> None:
"gemini": "gcp.gemini",
"az.ai.inference": "azure.ai.inference",
"az.ai.openai": "azure.ai.openai",
# LiteLLM's route for Ollama's chat endpoint
"ollama_chat": "ollama",
# the registry's own former spellings
**PROVIDER_NAME_RENAMES,
}
Expand Down
3 changes: 3 additions & 0 deletions tests/test_normalization_openinference.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ def test_an_unparseable_token_count_maps_to_nothing() -> None:
("aws", "aws"),
("google", "google"),
("ollama", "ollama"),
# LiteLLM's route for Ollama's chat endpoint
("ollama_chat", "ollama"),
],
)
def test_provider_spellings(source_value: str, expected: str) -> None:
Expand Down Expand Up @@ -524,6 +526,7 @@ def test_no_provider_without_a_named_ls_provider(metadata: str) -> None:
# compared under the registry's spelling
("vertex_ai", "vertex_ai/gemini-2.5-flash", "gemini-2.5-flash"),
("mistralai", "mistral/mistral-small-latest", "mistral-small-latest"),
("ollama_chat", "ollama_chat/llama3.2", "llama3.2"),
# a prefix naming anyone else is part of the name
("openai", "openai/google/gemini-2.5-flash", "google/gemini-2.5-flash"),
("openai", "google/gemini-2.5-flash", "google/gemini-2.5-flash"),
Expand Down
Loading