chat-ui icon indicating copy to clipboard operation
chat-ui copied to clipboard

Feature Request: Manage model through UI instead of updating .env.local

Open TriEyeMonster opened this issue 1 year ago • 4 comments

Since the website will be running in a production environment, it will be better that admin is able add or remove model through UI instead of a production deployment for a minor .env.local update.

TriEyeMonster avatar Jun 14 '24 08:06 TriEyeMonster

Yeah that would be definitely be nice, I think it was on our roadmap a while ago but never got prioritized. If there's strong demand we could try to tackle this! It would make life a lot easier for self-hosting users.

nsarrazin avatar Jun 17 '24 06:06 nsarrazin

Yeah, this is a essential feature if we want to make it more product ready.

TriEyeMonster avatar Jun 18 '24 01:06 TriEyeMonster

+1 for prioritisation.

widyaageng avatar Jun 18 '24 02:06 widyaageng

@nsarrazin how do you think we should handle endpoints array in the Modal collection? Currently, we have a union of Endpoint types (I think it will be hard to create one unified collection from them).

So,

  • do we want to have an additional mongo collection for each endpoint type (with their own schema): AwsEndpointSchema, OpenaiEndpointSchema, AnthropicEndpointSchema
  • or, just create a collection with type (aws, openai, anthropic) and json (each endpoint schema will have it's own structure) and validate it from the frontend side (like we do right now)?

neven4 avatar Jun 26 '24 18:06 neven4