Commit Graph

16 Commits

Author SHA1 Message Date
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
Timothy J. Baek
f46b95300b feat: rich text input for chat 2024-10-18 23:54:35 -07:00
Timothy J. Baek
595cf191fb chore: rm documents 2024-10-08 13:38:16 -07:00
Jun Siang Cheah
153ba168a0 tests: update share test to actually share 2024-08-11 22:30:25 +01:00
Jun Siang Cheah
c70b18b2ef tests: change how cypress detects chat messages 2024-08-11 16:22:33 +01:00
Jonathan Rohde
c6eba8c0a1 enh: add e2e tests for document list 2024-07-18 15:09:02 +02:00
Timothy J. Baek
e2d8872060 fix: e2e 2024-06-11 17:03:49 -07:00
Jun Siang Cheah
a937f6504a feat: add image gen with automatic1111 to integration test 2024-05-20 23:03:05 +01:00
Timothy J. Baek
0a9092156c chore: format 2024-05-16 18:21:19 -10:00
Timothy Jaeryang Baek
85dbdd23fc
Merge branch 'dev' into fix/share-chat-reactive-loop 2024-05-15 08:38:59 -10:00
Jun Siang Cheah
8d4c9c77bf fix: settings cypress test after style changes 2024-05-15 23:49:26 +08:00
Jonathan Rohde
33b9629164 fix: prevent loop when fetching shared chat id 2024-05-14 16:19:37 +02:00
Timothy J. Baek
a19d4267f7 fix: integration test 2024-05-02 14:20:53 -07:00
Timothy J. Baek
2789102d27 Update chat.cy.ts 2024-05-02 12:54:28 -07:00
Timothy J. Baek
c1f88eb0ad Update chat.cy.ts 2024-05-02 12:49:25 -07:00
Jun Siang Cheah
730befce45 feat: add basic cypress test as initial work towards e2e tests 2024-04-27 14:10:10 +01:00