"vscode:/vscode.git/clone" did not exist on "304006aa8c9b777d6ad4ee09ed6e542f51e73b84"
models.py 238 Bytes
Newer Older
1
from apps.webui.models.models import Models, ModelModel, ModelForm, ModelResponse
Timothy J. Baek's avatar
Timothy J. Baek committed
2
3
4
5
6
7
8
9
10


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