diff --git a/apps/builder/src/components/inputs/Textarea.tsx b/apps/builder/src/components/inputs/Textarea.tsx index 61bc32d56..9948f8a4c 100644 --- a/apps/builder/src/components/inputs/Textarea.tsx +++ b/apps/builder/src/components/inputs/Textarea.tsx @@ -22,6 +22,7 @@ type Props = { moreInfoTooltip?: string withVariableButton?: boolean isRequired?: boolean + placeholder?: string onChange: (value: string) => void } & Pick @@ -32,8 +33,10 @@ export const Textarea = ({ debounceTimeout = 1000, label, moreInfoTooltip, + placeholder, withVariableButton = true, isRequired, + minH, }: Props) => { const inputRef = useRef(null) const [isTouched, setIsTouched] = useState(false) @@ -89,6 +92,8 @@ export const Textarea = ({ value={localValue} onBlur={updateCarretPosition} onChange={(e) => changeValue(e.target.value)} + placeholder={placeholder} + minH={minH} /> ) diff --git a/apps/builder/src/features/blocks/integrations/openai/components/createChatCompletion/ChatCompletionMessageItem.tsx b/apps/builder/src/features/blocks/integrations/openai/components/createChatCompletion/ChatCompletionMessageItem.tsx index bd0289180..790818f21 100644 --- a/apps/builder/src/features/blocks/integrations/openai/components/createChatCompletion/ChatCompletionMessageItem.tsx +++ b/apps/builder/src/features/blocks/integrations/openai/components/createChatCompletion/ChatCompletionMessageItem.tsx @@ -1,5 +1,5 @@ import { DropdownList } from '@/components/DropdownList' -import { TextInput } from '@/components/inputs' +import { Textarea } from '@/components/inputs' import { VariableSearchInput } from '@/components/inputs/VariableSearchInput' import { TableListItemProps } from '@/components/TableList' import { Stack } from '@chakra-ui/react' @@ -77,10 +77,11 @@ export const ChatCompletionMessageItem = ({ item, onItemChange }: Props) => { /> ) : ( - )} diff --git a/apps/builder/src/features/blocks/integrations/openai/components/createChatCompletion/OpenAIChatCompletionSettings.tsx b/apps/builder/src/features/blocks/integrations/openai/components/createChatCompletion/OpenAIChatCompletionSettings.tsx index bbec5c063..213ad8695 100644 --- a/apps/builder/src/features/blocks/integrations/openai/components/createChatCompletion/OpenAIChatCompletionSettings.tsx +++ b/apps/builder/src/features/blocks/integrations/openai/components/createChatCompletion/OpenAIChatCompletionSettings.tsx @@ -79,7 +79,7 @@ export const OpenAIChatCompletionSettings = ({ items={chatCompletionModels} onItemSelect={updateModel} /> - +