mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
feat: file schem file replace
This commit is contained in:
@ -50,18 +50,6 @@ export const CHUNK_TYPE_MAP = {
|
||||
qa_chunks: 'QAStructureChunk',
|
||||
}
|
||||
|
||||
// deprecated, use schemaType in llm/types.ts instead
|
||||
export const getOutputVariableAlias = (variable: Record<string, any>) => {
|
||||
if (variable?.general_chunks)
|
||||
return CHUNK_TYPE_MAP.general_chunks
|
||||
if (variable?.parent_child_chunks)
|
||||
return CHUNK_TYPE_MAP.parent_child_chunks
|
||||
if (variable?.qa_chunks)
|
||||
return CHUNK_TYPE_MAP.qa_chunks
|
||||
if (variable?.file_type)
|
||||
return 'file'
|
||||
}
|
||||
|
||||
export const wrapStructuredVarItem = (outputItem: any, matchedSchemaType: string): StructuredOutput => {
|
||||
const dataType = Type.object
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user