This commit is contained in:
Timothy Jaeryang Baek committed 2026-07-26 23:09:22 -04:00
1 parent 95d590b360
commit ed663f16ec
4 files changed
+22 -28

No files matched your search

+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