Skip to content

Commit

Permalink
chore(pal): add helper text to systemp prompt and prompt generating m…
Browse files Browse the repository at this point in the history
…odel
  • Loading branch information
a-ghorbani committed Feb 12, 2025
1 parent 6114676 commit c875f29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/PalsSheets/ModelSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface ModelSelectorProps {
value?: string;
onChange: (value: string) => void;
label: string;
sublabel?: string;
placeholder?: string;
error?: boolean;
helperText?: string;
Expand All @@ -26,6 +27,7 @@ export const ModelSelector = observer(
value,
onChange,
label,
sublabel,
placeholder = 'Select model',
error,
helperText,
Expand All @@ -45,6 +47,7 @@ export const ModelSelector = observer(
{label}
{required && '*'}
</Text>
{sublabel && <Text style={styles.sublabel}>{sublabel}</Text>}
<Menu
visible={menuVisible}
selectable
Expand Down
2 changes: 2 additions & 0 deletions src/components/PalsSheets/SystemPromptSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export const SystemPromptSection = observer(
clearErrors('promptGenerationModel');
}}
label="Select Model for Generation*"
sublabel="Recommended: Llama 3.2 3B or Qwen2.5 3B."
placeholder="Select model"
error={!!error}
helperText={error?.message}
Expand Down Expand Up @@ -192,6 +193,7 @@ export const SystemPromptSection = observer(
<FormField
name="systemPrompt"
label="System Prompt"
sublabel="Feel free to edit and experiment to find the optimal prompt for your scenario"
placeholder="You are a helpful assistant"
multiline
required
Expand Down

0 comments on commit c875f29

Please sign in to comment.