Skip to content

Commit

Permalink
chore: correct typo
Browse files Browse the repository at this point in the history
  • Loading branch information
DDDDD12138 committed Sep 15, 2024
1 parent 26c3edd commit e986088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,8 @@ export function ChatActions(props: {

// if current model is not available
// switch to first available model
const isUnavaliableModel = !models.some((m) => m.name === currentModel);
if (isUnavaliableModel && models.length > 0) {
const isUnavailableModel = !models.some((m) => m.name === currentModel);
if (isUnavailableModel && models.length > 0) {
// show next model to default model if exist
let nextModel = models.find((model) => model.isDefault) || models[0];
chatStore.updateCurrentSession((session) => {
Expand Down

0 comments on commit e986088

Please sign in to comment.