mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
test(ocr): preserve explicit model fixture ids
This commit is contained in:
parent
58c5b48252
commit
5be124cef8
1 changed files with 1 additions and 2 deletions
|
|
@ -13,9 +13,8 @@ FIXTURE_DIR_ENV: Final = "LITELLM_OCR_FIXTURE_DIR"
|
|||
|
||||
def _fixture_id(fixture: OcrParityCase) -> str:
|
||||
case_input: Final = fixture.litellm_input
|
||||
model_id: Final = case_input.model.replace("/", "-")
|
||||
provider: Final = case_input.custom_llm_provider
|
||||
prefix: Final = f"{provider}-{model_id}" if provider and not model_id.startswith(f"{provider}-") else model_id
|
||||
prefix: Final = f"{provider}/{case_input.model}" if provider else case_input.model
|
||||
return fixture_id(case_input, prefix)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue