Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dllama-api: /v1/models: return basename of the model #170

Merged
merged 1 commit into from
Feb 16, 2025

Conversation

lemmi
Copy link
Contributor

@lemmi lemmi commented Feb 16, 2025

Change the /v1/models api endpoint to return the basename of the model path instead of the hardcoded value "dl".

Successfully tested with Open WebUI. Makes identifying the current model in use a little easier.

This works, but my C++ knowledge is a little limited. So this can be taken as a more detailed feature request instead :)

image

Change the /v1/models api endpoint to return the basename of the model
path instead of the hardcoded value "dl".
@b4rtaz b4rtaz merged commit a4bd7aa into b4rtaz:main Feb 16, 2025
3 checks passed
@b4rtaz
Copy link
Owner

b4rtaz commented Feb 16, 2025

Great! Thanks! Noticed that this implementation would create an invalid json if the file name would contains any quotation marks. I fixed it here.

@lemmi
Copy link
Contributor Author

lemmi commented Feb 17, 2025

Yeah.. that looks a lot more reasonable. Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants