mirror of
https://github.com/langgenius/dify.git
synced 2026-04-21 03:07:39 +08:00
fix: Handle format for context generate outputs
This commit is contained in:
@ -379,6 +379,8 @@ export function useMixedVariableExtractor({
|
||||
nextData.structured_output_enabled = nestedNodeData.structured_output_enabled
|
||||
if (nestedNodeData.structured_output?.schema)
|
||||
nextData.structured_output = nestedNodeData.structured_output
|
||||
if (typeof nestedNodeData.computer_use === 'boolean')
|
||||
nextData.computer_use = nestedNodeData.computer_use
|
||||
if (nestedNodeData.context)
|
||||
nextData.context = nestedNodeData.context
|
||||
if (nestedNodeData.vision)
|
||||
|
||||
@ -285,6 +285,7 @@ const MixedVariableTextInput = ({
|
||||
nodeType: BlockEnum.LLM,
|
||||
data: {
|
||||
structured_output_enabled: true,
|
||||
computer_use: false,
|
||||
structured_output: {
|
||||
schema: {
|
||||
type: Type.object,
|
||||
|
||||
Reference in New Issue
Block a user