refac
This commit is contained in:
1 parent
95d590b360
commit
ed663f16ec
4 files changed
+22
-28
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user