mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-06 08:00:51 -05:00
5 lines
205 B
Python
5 lines
205 B
Python
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
|