mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 01:48:04 +08:00
fix(workflow): tighten tsgo types in workflow editor
This commit is contained in:
@ -20,7 +20,7 @@ const createModel = (overrides: Partial<ModelConfig> = {}): ModelConfig => ({
|
||||
provider: 'openai',
|
||||
name: 'gpt-4o',
|
||||
mode: 'chat',
|
||||
completion_params: [],
|
||||
completion_params: {},
|
||||
...overrides,
|
||||
})
|
||||
|
||||
|
||||
@ -1963,7 +1963,7 @@ export const useNodesInteractions = () => {
|
||||
if (selectedNode) {
|
||||
// Keep this list aligned with availableBlocksFilter(inContainer)
|
||||
// in use-available-blocks.ts.
|
||||
const commonNestedDisallowPasteNodes = [
|
||||
const commonNestedDisallowPasteNodes: BlockEnum[] = [
|
||||
BlockEnum.End,
|
||||
BlockEnum.Iteration,
|
||||
BlockEnum.Loop,
|
||||
|
||||
Reference in New Issue
Block a user