Skip to content

Commit

Permalink
[editor] Add placeholder to empty text prompt input
Browse files Browse the repository at this point in the history
# [editor] Add placeholder to empty text prompt input

Note the figma has the text "Type a prompt. (e.g. show me an astronaut riding a horse on the moon)", however that could be confusing for any model that doesn't have an image output. So, let's just use 'Type a prompt' for now

<img width="1360" alt="Screenshot 2023-12-29 at 8 14 38 PM" src="https://github.com/lastmile-ai/aiconfig/assets/5060851/a84d6ebb-77ae-4304-8689-0cdfa7236360">
  • Loading branch information
Ryan Holinshead committed Jan 2, 2024
1 parent d114595 commit 0045dcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default memo(function PromptInputDataSchemaRenderer({
<Textarea
value={data ? (data as string) : ""}
onChange={(e) => onChangeData(e.target.value)}
placeholder="Type a prompt"
/>
);
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export default memo(function PromptInputSchemaRenderer(props: Props) {
<Textarea
value={props.input as string}
onChange={(e) => props.onChangeInput(e.target.value)}
placeholder="Type a prompt"
/>
);
} else {
Expand Down

0 comments on commit 0045dcd

Please sign in to comment.