-
Notifications
You must be signed in to change notification settings - Fork 444
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
Improve proxy server usage #2488
Conversation
Conflicts: lmdeploy/cli/serve.py lmdeploy/serve/openai/api_server.py
Let's add another CLI for lmdeploy serve proxy --server-name {server_name} --server-port {server_port} --strategy "min_expected_latency" default |
docs/en/llm/proxy_server.md
Outdated
|
||
```shell | ||
curl -X 'POST' \ | ||
'http://localhost:10086/nodes/remove?node_url=http://0.0.0.0:23333' \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which is a more conventional way, "remove/?node_url" or set the parameter in -d
field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both worked, the command was from swagger UI.
@@ -40,6 +40,9 @@ class VariableInterface: | |||
session_id: int = 0 | |||
api_keys: Optional[List[str]] = None | |||
request_hosts = [] | |||
# following are for registering to proxy server | |||
proxy_url: Optional[str] = None | |||
api_server_url: Optional[str] = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary? Can we use http://{server_ip}:{server_port}
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a global variable. VariableInterface.api_server_url = f'{http_or_https}://{server_name}:{server_port}'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.