chat-ui
b7b2c8c2 - Disable models (#187)

Commit
2 years ago
Disable models (#187) * add ability for a model to be disabled * fallback to default model if user has invalid/disabled model in settings * set conversations to read-only if conv model is disabled * add better disabled state on chat input * fix inverted if statement * remove bigcode from .env * fix not updating settings Co-authored-by: Eliott C. <coyotte508@gmail.com> * refactor solution to use an OLD_MODELS env var instead * OLD_MODELS needs to be in .env but can be empty * fix typing issue + typo * refactor models validation * old models displayName is optional * set read only prop on user message not assistant messages * remove console.log * ♻️ Refacto isReadOnly * 🩹 Fluff: use 410 http code --------- Co-authored-by: Eliott C. <coyotte508@gmail.com>
Author
Parents
Loading