Skip to content

Conversation

henryhmko
Copy link
Contributor

Motivation

Merged Native API endpoints get_server_args, get_memory_pool_size, and get_max_num_tokens into one endpoint: get_server_info for cleaner code in server.py.

Modifications

Merged the three endpoints as mentioned above + Updated the docs/unittests accordingly.

Checklist

  • Format your code according to the Contributor Guide.
  • Add unit tests as outlined in the Contributor Guide.
  • Update documentation as needed, including docstrings or example tutorials.

@ByronHsu
Copy link
Collaborator

Removing existing api routes can break existing users. Better to keep the old one and add get_server_info on top

@merrymercy
Copy link
Contributor

I do not think they are ever used by any non-core developers, so we do not need to worry about the backward compatibility now.

@merrymercy merrymercy merged commit dbe1729 into sgl-project:main Nov 24, 2024
15 checks passed
@binarycrayon
Copy link
Contributor

we actually use it, would love to get some warning about breaking changes in the future

timethink pushed a commit to timethink/sglang that referenced this pull request Mar 9, 2025
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.

4 participants