github-actions[bot]
GitHub deploy: b6b71c08f3e1811b819a8d8f68cb4d83e57163d0
498a7b8
raw
history blame contribute delete
238 Bytes
from apps.webui.models.models import Models, ModelModel, ModelForm, ModelResponse
def get_model_id_from_custom_model_id(id: str):
model = Models.get_model_by_id(id)
if model:
return model.id
else:
return id