Skip to content

make "serve" library #14331

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

arnej27959
Copy link

We're using llama.cpp from java using the wrapper from https://github.com/kherud/java-llama.cpp at the moment.

This wrapper uses code from the "tools/server" directory, and it would be most helpful to split that code into a library part (a generic server) and the HTTP-specific part. This PR creates a new library in "tools/serve" which can be used directly, while keeping the main() routine etc in "server". This should not impact current functionality in any way, it's just moving some of the code. This could also be useful if someone wants to build a server using RPC/protobuf instead of HTTP/json, for example.

I hope this contribution might be welcome.

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

Successfully merging this pull request may close these issues.

1 participant