Files
opencode-vllm-autostart/scripts/quickcheck.py
T
dfj 40656fd046 Initial commit: OpenCode vLLM autostart plugin and launchers
- Desktop plugin: on-demand vLLM model start, eject, media budgets
- WSL-native twin plugin for WSL project sessions
- Launchers for Qwen3.6 35B-A3B, Qwen3.8 27B (uncensored/fast), Agents-A1
- Config templates, diagnostics, video-processor workaround
2026-11-01 00:18:38 +01:00

13 lines
405 B
Python

import socket, urllib.request, json
s = socket.socket(); s.settimeout(3)
try:
s.connect(("127.0.0.1", 8000)); print("PORT_OPEN")
except Exception as e:
print("PORT_CLOSED", repr(e))
finally:
s.close()
try:
r = urllib.request.urlopen("http://127.0.0.1:8000/v1/models", timeout=5)
print("MODELS", json.loads(r.read())["data"][0]["id"])
except Exception as e:
print("NO_API", repr(e))