open-webui/backend/open_webui
google-labs-jules[bot] 1345b55fe1 feat: Implement Agent Creation with Generalized Model Support
This commit introduces the initial Agent Creation Playground feature and ensures it supports all model types available in Open WebUI, not just Ollama models.

Key changes include:

Frontend:
- Created a new Agent Creation form at `/agents/create`.
- Added a link to the playground in the sidebar (admin only).
- The form now fetches and displays all available models from the `/api/models` endpoint.
- Updated UI to correctly handle generalized model IDs.

Backend:
- Modified the `Agent` model to store a generic `model_id` (foreign key to the `models` table) instead of a specific `llm_model`.
- Updated API endpoints and Pydantic schemas accordingly.
- Created database migrations to reflect schema changes.
- Verified that the existing `/api/models` endpoint can be used to list all models for the creation form.

Testing:
- Added Cypress E2E tests for the agent creation form.
- Tests verify that different model types can be selected and that the correct `model_id` and other agent details are submitted to the backend.

This provides a foundation for you to define agents using any model integrated with your Open WebUI instance.
2025-05-28 11:03:52 +00:00
..
data
internal feat: Implement Agent Creation with Generalized Model Support 2025-05-28 11:03:52 +00:00
migrations
models feat: Implement Agent Creation with Generalized Model Support 2025-05-28 11:03:52 +00:00
retrieval chore: format 2025-05-24 02:13:54 +04:00
routers feat: Implement Agent Creation with Generalized Model Support 2025-05-28 11:03:52 +00:00
socket refac: socket 2025-05-09 14:23:16 +04:00
static
storage Fix S3 allowed characters in Tags. 2025-05-23 11:09:40 +02:00
test
utils chore: format 2025-05-27 02:18:43 +04:00
__init__.py
alembic.ini
config.py Merge pull request #14069 from Ithanil/bm25_weight 2025-05-24 01:13:03 +04:00
constants.py
env.py feat: WEBUI_AUTH_TRUSTED_GROUPS_HEADER 2025-05-24 23:17:12 +04:00
functions.py fix/refac: functions multi-replica issue 2025-05-20 20:20:27 +04:00
main.py feat: Implement Agent Creation with Generalized Model Support 2025-05-28 11:03:52 +00:00
tasks.py