@blocklet/pages-kit-block-studio 0.5.47 → 0.5.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,3 @@
1
- // 导入 Zod 工具集
2
1
  import { getPageAllSections } from '@blocklet/pages-kit/utils/page-model';
3
2
  import { getComponentDependencies } from '@blocklet/pages-kit/utils/property';
4
3
  import { z } from 'zod';
@@ -483,7 +482,11 @@ export function generatePageDataZodToAgent(state, pageId) {
483
482
  const zodSchema = propertiesToZodSchema(component.properties || {}, {
484
483
  addZodDescribe: false,
485
484
  skipAnyType: true,
486
- llmConfig: section.llmConfig?.properties || {},
485
+ /**
486
+ * @tip 历史原因:section.llmConfig 是在页面模板配置的,component.llmConfig 是在组件配置的,存在一定的优先级关系
487
+ * section.llmConfig > component.llmConfig
488
+ */
489
+ llmConfig: section.llmConfig?.properties || component.llmConfig?.properties || {},
487
490
  });
488
491
  // 添加section描述
489
492
  sectionSchemas[sectionName] = zodSchema.describe(section.templateDescription || '');