diff --git a/docs/opencode_server_guide.md b/docs/opencode_server_guide.md index 02e08fc..9c0fdb3 100644 --- a/docs/opencode_server_guide.md +++ b/docs/opencode_server_guide.md @@ -72,6 +72,12 @@ settings set opencc.password secret settings save ``` +Optional — override the Basic Auth username (default `opencode`): +```lua +settings set opencc.username myuser +settings save +``` + - **CraftOS-PC (localhost):** `http://127.0.0.1:4096` - **In-game ATM10:** use your LAN IP (e.g. `192.168.x.x`) — add it to `http.rules` in `config/computercraft-server.toml` @@ -101,7 +107,7 @@ Set settings inside the harness before running, or inject them via the test API. |---|---|---| | `missing opencc.server_url` | Setting not set | `settings set opencc.server_url http://...` | | `serveur injoignable` | Server not running or wrong URL | Start `opencode serve`, check URL/port | -| `HTTP 401` | Wrong password | Check `opencc.password` matches `OPENCODE_SERVER_PASSWORD` | +| `erreur message: HTTP 401` | Wrong password | Check `opencc.password` matches `OPENCODE_SERVER_PASSWORD` | | `session introuvable; lance: ai-helloworld --new` | Session was deleted or server restarted | Run `ai-helloworld --new` | -| `HTTP 504` | AI took too long | Retry; consider a faster model | +| `erreur message: HTTP 504` | AI took too long | Retry; consider a faster model | | `reponse vide` | Reply had no text parts | Check opencode logs |