tinychat icon indicating copy to clipboard operation
tinychat copied to clipboard

Support custom model names

Open johnd0e opened this issue 1 year ago • 2 comments

Currently, there are two distinct OpenAI options in the providers list: "gpt-3.5 turbo" and "gpt-4 turbo". It would be more efficient to consolidate these into a single item, with the capability to switch between different models. Naturally, the ability to assign custom model names is necessary.

The same improvements should also be made for Claude, LLama, and Mistral.

johnd0e avatar May 05 '24 13:05 johnd0e

Hi there,

Yes, duplicating the handler instantiation like that is probably not the cleanest of solutions, I will see what can be done without compromising simplicity too much while refactoring.

If you had any initial thoughts feel free to share them here!

pymike00 avatar May 06 '24 08:05 pymike00

If you had any initial thoughts feel free to share them here!

I see several alternatives

  • Common models list, with possibility to add there any model by any provider. Additionally there could be "Filter by provider" , drop-down control.
  • 2 separate lists in dropdown controls: Provider / Model, with possibility to add any custom model. It would be good, if we could add custom providers as well. By "custom provider" I mean any OpenAI-, or Google Gemini-compatible service, which can be defined with its URL (#6)

johnd0e avatar May 06 '24 18:05 johnd0e