How to change the server's configuration from rzb tui
This guide shows how to edit the running server's configuration file from rzb tui, have it checked and reloaded, and how to change rzb tui's own preferences. It assumes the server was started with rzb serve --config <file>.
Edit the server's file
- Press
F4. Under Server configuration, thefile:line names the file. - Press
Ctrl-O. The file opens in your editor ($VISUAL, else$EDITOR, elsevi). - Change it, save, and quit the editor.
- Back in
rzb tui, read the result under the section:- problems are listed with their line numbers, and the server keeps its configuration: press
Ctrl-Oto fix the file; - otherwise the server has reloaded it, and the line says how many models are declared, which loaded models were unloaded, and which
server:keys only apply after a restart.
- problems are listed with their line numbers, and the server keeps its configuration: press
- If keys are listed as needing a restart, stop the server and start it again.
To pick the editor for one session: EDITOR=nano rzb tui --config server.yaml.
Reload a file edited elsewhere
Edit the file with any tool, then press Ctrl-R on the Settings screen. It is the same as curl -X POST http://127.0.0.1:7920/rzb/config/reload.
Change rzb tui's preferences
- On the Settings screen, move between the fields with
Tabor the arrows, and type. - Press
Enterto save. A wrong field is named and nothing is saved;Escundoes the changes.
The reasoning display, the chat sampling, the colours and the poll interval change at once; the server URL and the API key variable apply the next time rzb tui starts.
Variants
- The file line says none: the server runs without
--config. Stop it and start it again with a file;rzb tuicannot add one to a running server. - The server has an API key: start
rzb tuiwith--api-key-envnaming its variable, or setapi_key_envin the preferences.
See also
- What a reload changes, key by key: configuration reference.
- The preferences file: rzb tui reference.
- The same from the shell: watch and steer a running server.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|