This commit is contained in:
Timothy Jaeryang Baek
2026-07-26 23:09:22 -04:00
parent 95d590b360
commit ed663f16ec
4 changed files with 22 additions and 28 deletions
+4
View File
@@ -0,0 +1,4 @@
def strip_provider_model_prefix(model_id: str, prefix_id: str | None) -> str:
if prefix_id and model_id.startswith(f'{prefix_id}.'):
return model_id[len(f'{prefix_id}.') :]
return model_id