aboutsummaryrefslogtreecommitdiff
path: root/app/backends/faster.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/backends/faster.py')
-rwxr-xr-xapp/backends/faster.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/backends/faster.py b/app/backends/faster.py
index 3dc30dd..e1249ca 100755
--- a/app/backends/faster.py
+++ b/app/backends/faster.py
@@ -362,7 +362,10 @@ def detect() -> BackendStatus:
argv = [str(envs.env_python()),
str(_checkout() / "examples" / "openai_server.py"),
"--voices", str(voices_json), "--port", str(_config_port())]
- specs = [ServerSpec("faster", config.FASTER_API_URL, argv)]
+ # identity: /health must report model_loaded before the server is
+ # really usable (the model loads after the port opens).
+ specs = [ServerSpec("faster", config.FASTER_API_URL, argv,
+ identity=probe.IDENTITY_FASTER)]
launch = format_launch_hint(specs)
managed = servers.manages(specs)
remote_running, remote_urls = _detect_remote(managed)