mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #20771] feat: API endpoint to read/write workspace model system prompts #34812
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @4republic on GitHub (Jan 18, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20771
Check Existing Issues
Verify Feature Scope
Problem Description
Summary
Add an admin-level API endpoint that allows reading and writing workspace model configurations, including
params.system(system prompts) and
meta.suggestion_prompts(starter prompts).Use Case: Self-Improving AI Models
I'm building an automation system that creates a "virtuous cycle" for workspace models:
/api/v1/chatsclarifications)
This enables workspace models to evolve based on real usage patterns rather than static configuration.
Current Limitation
The existing
/api/v1/modelsendpoint sanitizes the response:params.systemreturns empty string (even when system prompt exists)I confirmed this by:
/openapi.json- no admin endpoint for workspace modelsDesired Solution you'd like
Proposed Solution
Add an admin-only endpoint (one of these patterns):
GET /api/v1/admin/models/{id} # Full config including system prompt
PUT /api/v1/admin/models/{id} # Update model configuration
Or extend the existing endpoint with an admin flag:
GET /api/v1/models/{id}?include_system=true # Requires admin API key
Security Considerations
Why This Benefits the Community
Alternatives Considered
Workaround (Current)
Manual copy-paste via Admin UI, which breaks the automation goal.
Additional Context
Environment
/api/v1/chat/completions,/api/v1/messages,/api/v1/chats,/api/v1/models,/api/v1/files,/api/v1/knowledge,/api/v1/images,/api/v1/audioThank you for considering this feature. Happy to provide more details or help test a PR.
@tjbck commented on GitHub (Jan 22, 2026):
This endpoint already exists
/api/v1/models/model