NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Feature Request]: How can I "define" many LLM providers (with their creds) and then use them accordingly?

Open younes-io opened this issue 1 year ago • 3 comments
trafficstars

Problem Description

For now, it's hard to switch between LLM providers. Every time I have to switch from one LLM provider to another, I need to get the API key and copy/paste manually, then put the URL of the other LLM provider, etc.

This is not very efficient, I think. It would be great to have a way to set up many LLM providers and their models, then switch between them using a drop down list. This also will make it easier for masks. Today, a mask with an LLM that belongs to an LLM provider that's not my "current" LLM, will fail; I have to switch manually to make it work.

Solution Description

So, I believe the definition of LLM/LLM provider should be done in the setup, and then each conversation/mask should use the credentials defined with the LLM provider details required to call the LLM.

Alternatives Considered

I'm already using https://big-agi.com/ because Next-Chat doesn't support this feature unfortunately

Additional Context

https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/discussions/4669

younes-io avatar May 14 '24 06:05 younes-io

Problem Description

For now, it's hard to switch between LLM providers. Every time I have to switch from one LLM provider to another, I need to get the API key and copy/paste manually, then put the URL of the other LLM provider, etc.

This is not very efficient, I think. It would be great to have a way to set up many LLM providers and their models, then switch between them using a drop down list. This also will make it easier for masks. Today, a mask with an LLM that belongs to an LLM provider that's not my "current" LLM, will fail; I have to switch manually to make it work.

Solution Description

So, I believe the definition of LLM/LLM provider should be done in the setup, and then each conversation/mask should use the credentials defined with the LLM provider details required to call the LLM.

Alternatives Considered

I'm already using https://big-agi.com/ because Next-Chat doesn't support this feature unfortunately

Additional Context

#4669

Maybe you can deploy the one-api(https://github.com/songquanpeng/one-api), and add different provides to the one api.

Green-li avatar May 14 '24 07:05 Green-li

We are developing v3 of NextChat, which would be easily create new model provider and will publish more details soon

https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/4622

fred-bf avatar May 14 '24 11:05 fred-bf

alright, thank you

younes-io avatar May 14 '24 14:05 younes-io