Skip to content

server: remove model.json endpoint #5371

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

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

z80maniac
Copy link
Contributor

This PR removes the /model.json endpoint from the server.

This endpoint was undocumented and was only used internally in the server web UI here: https://github.com/ggerganov/llama.cpp/blob/17c97fb0620448b37516a3f53fea6c482b0a30a4/examples/server/public/completion.js#L196-L201

The PR replaces this call with the call to the /props endpoint which now has the same info (#5307).

Also, I noticed that llamaModelInfo mentioned above is not actually used anywhere. And most of the other exported functions (llamaComplete, llamaPromise, llamaEventTarget) are not used anywhere as well.

@ggerganov ggerganov merged commit 213d143 into ggml-org:master Feb 6, 2024
jordankanter pushed a commit to jordankanter/llama.cpp that referenced this pull request Mar 13, 2024
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
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