Skip to content

Commit

Permalink
Fix/init chat fallback (#511)
Browse files Browse the repository at this point in the history
  • Loading branch information
sceuick authored Jul 16, 2023
1 parent b5839c7 commit 008f3ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ export function getChatPreset(
}

// #5
return getFallbackPreset(adapter)
return getFallbackPreset(adapter || 'horde')
}

/**
Expand Down
2 changes: 1 addition & 1 deletion web/pages/Chat/ChatSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const ChatSettingsModal: Component<{ show: boolean; close: () => void }> = (prop
})

createEffect(() => {
const currentText = state.chat?.scenario || ''
const currentText = scenarioText()
const scenario = scenarioState.scenarios.find((s) => s._id === scenarioId())
if (scenario?.overwriteCharacterScenario && !state.chat?.scenarioIds?.includes(scenario._id)) {
setScenarioText(scenario.text)
Expand Down

0 comments on commit 008f3ee

Please sign in to comment.