style: ruff-format utils strip helpers and drop unused test import

This commit is contained in:
navaneethkrishnansuresh 2026-08-06 09:11:07 +05:30
parent 8011d8135e
commit 63234c8b87
2 changed files with 3 additions and 3 deletions

View file

@ -5219,7 +5219,9 @@ def _get_potential_model_names(model: str, custom_llm_provider: str | None) -> P
combined_model_name = f"{cost_map_prefix}/{split_model}"
elif cost_map_prefix != custom_llm_provider and model.startswith(cost_map_prefix + "/"):
split_model = model.split("/", 1)[1]
combined_model_name = model if model.startswith(cost_map_prefix + "/") else f"{cost_map_prefix}/{split_model}"
combined_model_name = (
model if model.startswith(cost_map_prefix + "/") else f"{cost_map_prefix}/{split_model}"
)
else:
split_model = model
combined_model_name = f"{cost_map_prefix}/{model}"

View file

@ -10,8 +10,6 @@ suffix ``-5`` as a Vertex publish version and rewrote bare ids to
from __future__ import annotations
import os
import pytest
import litellm