Add OpenAI block

Also migrate credentials to tRPC

Closes #253
This commit is contained in:
Baptiste Arnaud
2023-03-09 08:46:36 +01:00
parent 97cfdfe79f
commit ff04edf139
86 changed files with 2583 additions and 1055 deletions

View File

@@ -3,6 +3,7 @@ import { injectVariableInText } from '@/features/variables/utils/injectVariableI
import { focusInput } from '@/utils/focusInput'
import {
FormControl,
FormHelperText,
FormLabel,
HStack,
Input as ChakraInput,
@@ -26,6 +27,7 @@ export type TextInputProps = {
onChange: (value: string) => void
debounceTimeout?: number
label?: ReactNode
helperText?: ReactNode
moreInfoTooltip?: string
withVariableButton?: boolean
isRequired?: boolean
@@ -42,6 +44,7 @@ export const TextInput = forwardRef(function TextInput(
defaultValue,
debounceTimeout = 1000,
label,
helperText,
moreInfoTooltip,
withVariableButton = true,
isRequired,
@@ -137,6 +140,7 @@ export const TextInput = forwardRef(function TextInput(
) : (
Input
)}
{helperText && <FormHelperText>{helperText}</FormHelperText>}
</FormControl>
)
})