mirror of
https://github.com/open-webui/open-webui
synced 2025-06-13 18:02:50 +00:00
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. |
||
---|---|---|
.. | ||
001_initial_schema.py | ||
002_add_local_sharing.py | ||
003_add_auth_api_key.py | ||
004_add_archived.py | ||
005_add_updated_at.py | ||
006_migrate_timestamps_and_charfields.py | ||
007_add_user_last_active_at.py | ||
008_add_memory.py | ||
009_add_models.py | ||
010_migrate_modelfiles_to_models.py | ||
011_add_user_settings.py | ||
012_add_tools.py | ||
013_add_user_info.py | ||
014_add_files.py | ||
015_add_functions.py | ||
016_add_valves_and_is_active.py | ||
017_add_user_oauth_sub.py | ||
018_add_function_is_global.py | ||
019_create_agents_table.py | ||
020_modify_agents_table_for_generic_model_id.py |