mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-10-08 23:24:27 +00:00
feat(model): supports the deployment of multiple models through the API and add the corresponding command line interface
This commit is contained in:
@@ -4,6 +4,7 @@ import subprocess
|
||||
from typing import List, Dict
|
||||
import psutil
|
||||
import platform
|
||||
from functools import lru_cache
|
||||
|
||||
|
||||
def _get_abspath_of_current_command(command_path: str):
|
||||
@@ -137,6 +138,7 @@ def _get_ports_by_cmdline_part(service_keys: List[str]) -> List[int]:
|
||||
return ports
|
||||
|
||||
|
||||
@lru_cache()
|
||||
def _detect_controller_address() -> str:
|
||||
controller_addr = os.getenv("CONTROLLER_ADDRESS")
|
||||
if controller_addr:
|
||||
|
Reference in New Issue
Block a user