Vali-98 / ChatterUI

Simple frontend for LLMs built in react-native.
GNU Affero General Public License v3.0
384 stars 20 forks source link

generic chat completions #72

Open 4riw opened 1 month ago

4riw commented 1 month ago

Suggestion: Could you make the endpoint for generic chat completions static, only including "chat/completions"? And the models call too.

Some generous providers who offer free services often create their API URLs in the format, for example, "api.example.com/v2/chat/completions" or "api.example.net/free/chat/completions".

Thank you.

Vali-98 commented 1 month ago

I will probably change it to require the full URL + API path for the custom configurations, as people tend to have custom API names anyways.

Edit: Actually this conflicts with the model path. I might consider just adding a modelPath and completionPath variable as well for full customization.