Commit Graph

4 Commits

Author SHA1 Message Date
zhi
de04e21aa1 fix: wait for gateway ready before post-install model validation
Root cause: gateway restart is async (systemd), but validateNoReplyModelAvailable()
ran immediately after, hitting a race condition where the new gateway process
hadn't finished initializing yet. This caused 'model not listed' validation
failures, triggering config rollback even though the config was correct.

Changes:
- Add waitForGatewayReady() that polls 'openclaw gateway status' for RPC probe
- Add retry loop (5 attempts, 2s interval) to validateNoReplyModelAvailable()
- Fix CONFIG.example.json: contextWindow 4096->200000, maxTokens 64->8192
  (OpenClaw requires minimum 16000 contextWindow)
2026-02-26 08:45:37 +00:00
32af5fde6d feat(api): add bearer auth option and /v1/models endpoint 2026-02-25 10:43:19 +00:00
f4fb495ab2 chore(api): add docker compose and container image for no-reply service 2026-02-25 10:39:51 +00:00
1140a928f3 feat(api): add no-reply OpenAI-compatible API service 2026-02-25 10:36:32 +00:00