Skip to content

Conversation

@hannahbit
Copy link
Contributor

This PR adds a minimal CRUD UI for providers.

Still to do:

  • add liveview test
  • maybe make the form more fancy, by filling in "endpoint" in the config, when openai is selected as provider

https://bitcrowd.atlassian.net/browse/EX-113

Currently the providers cannot be managed through the admin UI. We can
create them directly in the psql console of the server.

- Add an index page where we can see the existing providers in the admin
  area. It is paginated and sortable by creation date. 
- Allow to create a new provider. 
  - Validate that `type` and `name` field are required.
  - Validate that `name` is unique for the given `type`
  - An `endpoint` has to be provided if the `type` is `openai`, and that
    is saved in the config field as json.
- Allow to delete a provider, only if no generation environment uses
  this provider (through model_config_provider). This is already
  enforced at the database level. 

We don’t need a show view since the model is so small. 

https://bitcrowd.atlassian.net/browse/EX-113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants