Thanks to visit codestin.com
Credit goes to github.com

Skip to content

make "server-core" 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.

@lexasub
Copy link
Contributor

lexasub commented Jun 29, 2025

@arnej27959 Good day! I think that serve is not a suitable name, since it intersects with the server entity. Maybe call it server-core? or serve-core? (other options are welcome)

@arnej27959 arnej27959 force-pushed the arnej/make-serve-library branch from 8abb76a to db0a6ed Compare June 30, 2025 10:03
@arnej27959 arnej27959 changed the title make "serve" library make "server-core" library Jun 30, 2025
@arnej27959
Copy link
Author

I like your suggestion "server-core"; I've updated the branch to get the newer changes and reflect the new name.

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.

2 participants