This commit is contained in:
2026-03-29 17:25:11 +08:00
parent 5f1f2ccfc9
commit a339629039
4 changed files with 9 additions and 2 deletions
+4 -1
View File
@@ -19,7 +19,8 @@ def build_command() -> list[str]:
host = str(runtime["openai_host"])
port = str(runtime["openai_port"])
api_key = runtime["api_key"] or ""
dtype = str(runtime["dtype"])
dtype = str(updates["dtype"] or runtime["dtype"])
quantization = str(updates["quantization"] or "").strip()
revision = runtime["revision"] or ""
cmd = [
sys.executable,
@@ -52,6 +53,8 @@ def build_command() -> list[str]:
cmd.append("--enable-auto-tool-choice")
if updates["tool_call_parser"]:
cmd.extend(["--tool-call-parser", str(updates["tool_call_parser"])])
if quantization:
cmd.extend(["--quantization", quantization])
if revision:
cmd.extend(["--revision", revision])
if api_key: