jackschedel / KoalaClient

The best LLM API Playground Interface (for me)
https://client.koaladev.io/
Creative Commons Zero v1.0 Universal
30 stars 9 forks source link

Model config #121

Closed cheeseonamonkey closed 5 months ago

cheeseonamonkey commented 6 months ago

Mostly refactoring the new model config stuff, without changing anything:

jackschedel commented 6 months ago

Hi, thanks for the PR. Can you run the prettier autoformat yarn format and commit it so I can get a better diff view? I think many of your api.ts spacing refactors with the onChange inlines will be auto-formatted out.

jackschedel commented 6 months ago

Also, please remove the unused variables that ESLint is warning about.

cheeseonamonkey commented 6 months ago

Oh yes, I see what you mean. I can clean it up a bit.

The original intent was to load the models dynamically from the OpenAI API, but some refactoring instincts kicked in first :sweat_smile:

jackschedel commented 5 months ago

@cheeseonamonkey Hi, while I initially did some brief testing and it seemed to work, after using it myself I've encountered issues where new model definitions do not save. I have reverted the PR. If you wish for these changes, fix the issues and make a new PR.