mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-19 00:35:58 +08:00
step run
This commit is contained in:
parent
4dbf56675a
commit
f652ae0d98
@ -170,8 +170,9 @@ const FormItem: FC<Props> = ({
|
|||||||
type === InputVarType.files && (
|
type === InputVarType.files && (
|
||||||
<TextGenerationImageUploader
|
<TextGenerationImageUploader
|
||||||
settings={{
|
settings={{
|
||||||
...fileSettings?.image,
|
...fileSettings,
|
||||||
detail: Resolution.high,
|
detail: fileSettings?.image?.detail || Resolution.high,
|
||||||
|
transfer_methods: fileSettings?.allowed_file_upload_methods || [],
|
||||||
} as any}
|
} as any}
|
||||||
onFilesChange={files => onChange(files.filter(file => file.progress !== -1).map(fileItem => ({
|
onFilesChange={files => onChange(files.filter(file => file.progress !== -1).map(fileItem => ({
|
||||||
type: 'image',
|
type: 'image',
|
||||||
|
@ -74,6 +74,8 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
|
|||||||
const singleRunForms = (() => {
|
const singleRunForms = (() => {
|
||||||
const forms: FormProps[] = []
|
const forms: FormProps[] = []
|
||||||
|
|
||||||
|
console.log(data.vision?.configs)
|
||||||
|
|
||||||
if (varInputs.length > 0) {
|
if (varInputs.length > 0) {
|
||||||
forms.push(
|
forms.push(
|
||||||
{
|
{
|
||||||
@ -102,11 +104,12 @@ const Panel: FC<NodePanelProps<LLMNodeType>> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isVisionModel) {
|
if (isVisionModel) {
|
||||||
|
const variableName = data.vision.configs?.variable_selector[1]
|
||||||
forms.push(
|
forms.push(
|
||||||
{
|
{
|
||||||
label: t(`${i18nPrefix}.vision`)!,
|
label: t(`${i18nPrefix}.vision`)!,
|
||||||
inputs: [{
|
inputs: [{
|
||||||
label: t(`${i18nPrefix}.files`)!,
|
label: variableName!,
|
||||||
variable: '#files#',
|
variable: '#files#',
|
||||||
type: InputVarType.files,
|
type: InputVarType.files,
|
||||||
required: false,
|
required: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user