mirror of https://github.com/langgenius/dify.git
fix: webapp url
This commit is contained in:
parent
9ff3310cb6
commit
f711f9a317
|
|
@ -128,7 +128,7 @@ const Result: FC<IResultProps> = ({
|
|||
|
||||
let hasEmptyInput = ''
|
||||
const requiredVars = prompt_variables?.filter(({ key, name, required, type }) => {
|
||||
if(type === 'boolean' || type === 'checkbox')
|
||||
if (type === 'boolean' || type === 'checkbox')
|
||||
return false // boolean/checkbox input is not required
|
||||
const res = (!key || !key.trim()) || (!name || !name.trim()) || (required || required === undefined || required === null)
|
||||
return res
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ export const sendCompletionMessage = async (body: Record<string, any>, { onData,
|
|||
...body,
|
||||
response_mode: 'streaming',
|
||||
},
|
||||
}, { onData, onCompleted, isPublicAPI: !appSourceType, onError, onMessageReplace })
|
||||
}, { onData, onCompleted, isPublicAPI: getIsPublicAPI(appSourceType), onError, onMessageReplace })
|
||||
}
|
||||
|
||||
export const sendWorkflowMessage = async (
|
||||
|
|
|
|||
Loading…
Reference in New Issue