feat: narrow model settings and tool server access; release 0.1.0-dev.4 #5

Merged
john merged 1 commit from feat/narrow-model-and-tool-access into main 2026-11-26 12:40:11 +00:00
Owner

Two narrow resources for what john/ai still writes from Python (owui_models.py, owui_tools.py).

openwebui_model_settings — selected fields of one model record: name, description, profile_image_url, hidden, tool_ids, reasoning_effort, compact_token_threshold, read_access/write_access.

  • Omitted attributes keep the live value. Everything else on the record (prompts, capabilities, knowledge, other params, base model, active) is sent back as read and compared after the write; a difference fails.
  • Images: same picture spelled differently is not a change; a value Open WebUI would silently drop is refused at plan time; if the server drops a new image the previous one is restored before failing. Unchanged images are not sent (the server keeps them and would re-check them).
  • Access by label: public, group:<name>, user:<email>, or group-id:/user-id: — an unknown or ambiguous name fails the plan. Access has its own endpoint and is only written when it differs.
  • Missing record: created (as the Python does for a newly published model).

openwebui_tool_server_access — enabled and read_access of one existing MCP connection (by info.id).

  • url and auth_type are checked, never written. Key, headers and OAuth registration never enter state.
  • Whole-list write: every other connection/field sent back as read and compared; refuses if the list changed since it was read; reverts and fails if anything else moved; fails if a tool sign-in is lost (Open WebUI re-registers OAuth clients on save).

Live check against ai.yawn.dev with a dev build: import plan for the 18 john/ai models and 4 tool servers = 22 to import, 0 to change, no secret material in the plan. Tests cover import no-op, image re-spelling, preserved fields, omitted attributes, bad labels/images, dropped image, create, secrets not in state, URL/auth mismatch, lost sign-in. check.sh passes. VERSION 0.1.0-dev.4.

Two narrow resources for what john/ai still writes from Python (owui_models.py, owui_tools.py). **openwebui_model_settings** — selected fields of one model record: `name`, `description`, `profile_image_url`, `hidden`, `tool_ids`, `reasoning_effort`, `compact_token_threshold`, `read_access`/`write_access`. - Omitted attributes keep the live value. Everything else on the record (prompts, capabilities, knowledge, other params, base model, active) is sent back as read and compared after the write; a difference fails. - Images: same picture spelled differently is not a change; a value Open WebUI would silently drop is refused at plan time; if the server drops a new image the previous one is restored before failing. Unchanged images are not sent (the server keeps them and would re-check them). - Access by label: `public`, `group:<name>`, `user:<email>`, or `group-id:`/`user-id:` — an unknown or ambiguous name fails the plan. Access has its own endpoint and is only written when it differs. - Missing record: created (as the Python does for a newly published model). **openwebui_tool_server_access** — `enabled` and `read_access` of one existing MCP connection (by `info.id`). - `url` and `auth_type` are checked, never written. Key, headers and OAuth registration never enter state. - Whole-list write: every other connection/field sent back as read and compared; refuses if the list changed since it was read; reverts and fails if anything else moved; fails if a tool sign-in is lost (Open WebUI re-registers OAuth clients on save). Live check against ai.yawn.dev with a dev build: import plan for the 18 john/ai models and 4 tool servers = **22 to import, 0 to change**, no secret material in the plan. Tests cover import no-op, image re-spelling, preserved fields, omitted attributes, bad labels/images, dropped image, create, secrets not in state, URL/auth mismatch, lost sign-in. check.sh passes. VERSION 0.1.0-dev.4.
feat: narrow model settings and tool server access; release 0.1.0-dev.4
All checks were successful
CI / release-check-1 (pull_request) Successful in 12s
CI / release-check (pull_request) Successful in 0s
Security / scan (pull_request) Successful in 33s
Security / security (pull_request) Successful in 0s
CI / check (pull_request) Successful in 4m32s
3798f94671
- openwebui_model_settings: name, description, image, hidden, default tools,
  reasoning effort, compaction threshold and access of one model record.
  Omitted attributes keep live values; the rest of the record is sent back as
  read and compared; image spelling is not a change; a dropped image is
  restored before failing; a missing record is created.
- openwebui_tool_server_access: enabled and access of one existing MCP
  connection. URL/auth checked, never written; credentials never in state;
  whole-list write refuses if the list changed meanwhile; a lost tool sign-in
  fails the apply.
- Access by label (public, group:<name>, user:<email>, group-id:/user-id:);
  an unknown or ambiguous name fails at plan time.
- Live import plan of the 18 john/ai models and 4 tool servers: 22 imports, no change.
john merged commit a4e2dbdb4d into main 2026-11-26 12:40:11 +00:00
john deleted branch feat/narrow-model-and-tool-access 2026-11-26 12:40:12 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
john/tofu-provider-openwebui!5
No description provided.