Skip to content

Commit

Permalink
Fix yes/no question
Browse files Browse the repository at this point in the history
  • Loading branch information
miku448 committed Oct 10, 2024
1 parent 3bc3b0c commit 5fefab9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ const SceneSuggestionModal = () => {
{!isPremium ? (
<div className="SceneSuggestionModal__countdown">
<div className="SceneSuggestionModal__countdown-amount">
{i18n('scene_generations_left', [sceneSuggestionsLeft.toString()])}
{i18n('scene_generations_left', [(sceneSuggestionsLeft || 0).toString()])}
</div>
<div className="SceneSuggestionModal__countdown-upgrade">
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export class RoleplayPromptStrategy extends AbstractPromptStrategy<
const getLabel = (key: string) => RoleplayPromptStrategy.getLabel(language, key);
return (
`\n${instructionPrefix}OOC: ${getLabel('has_condition_happened')}: ${condition}` +
`\n${getLabel('answer_yes_or_no')}` +
`\nAnswer with Yes or No` +
`\n${responsePrefix}${getLabel('based_on_last_two_messages')}{{SEL cond options=cond_opt}}`
);
}
Expand Down
5 changes: 1 addition & 4 deletions apps/interactor/src/state/listeners/interaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,7 @@ const interactionEffect = async (
serviceBaseUrl: servicesEndpoint,
identifier,
variables: {
cond_opt: [
` ${RoleplayPromptStrategy.getLabel(language, 'yes')}`,
` ${RoleplayPromptStrategy.getLabel(language, 'no')}`,
],
cond_opt: [` Yes`, ` No`],
},
});
let response = '';
Expand Down

0 comments on commit 5fefab9

Please sign in to comment.