fix(workflow): tighten tsgo types in workflow editor

This commit is contained in:
yyh
2026-03-25 18:35:51 +08:00
parent 3571bee55f
commit ab6993b6e7
10 changed files with 150 additions and 67 deletions

View File

@ -20,7 +20,7 @@ const createModel = (overrides: Partial<ModelConfig> = {}): ModelConfig => ({
provider: 'openai',
name: 'gpt-4o',
mode: 'chat',
completion_params: [],
completion_params: {},
...overrides,
})

View File

@ -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,