@blocklet/pages-kit-block-studio 0.6.59 → 0.6.60
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.
|
@@ -361,7 +361,7 @@ function generatePageDataJsonSchemasWithZod(state) {
|
|
|
361
361
|
// 使用Zod生成JSON Schema
|
|
362
362
|
const properties = generatePropertiesJsonSchemaWithZod({
|
|
363
363
|
properties: component.properties || {},
|
|
364
|
-
llmConfig:
|
|
364
|
+
llmConfig: component.llmConfig?.properties || {},
|
|
365
365
|
});
|
|
366
366
|
if (Object.keys(properties).length > 0) {
|
|
367
367
|
sectionProperties[sectionName] = {
|
|
@@ -523,11 +523,7 @@ function generatePageDataZodToAgent(state, pageId) {
|
|
|
523
523
|
const zodSchema = (0, zod_utils_1.propertiesToZodSchema)(component.properties || {}, {
|
|
524
524
|
addZodDescribe: false,
|
|
525
525
|
skipAnyType: true,
|
|
526
|
-
|
|
527
|
-
* @tip 历史原因:section.llmConfig 是在页面模板配置的,component.llmConfig 是在组件配置的,存在一定的优先级关系
|
|
528
|
-
* section.llmConfig > component.llmConfig
|
|
529
|
-
*/
|
|
530
|
-
llmConfig: section.llmConfig?.properties || component.llmConfig?.properties || {},
|
|
526
|
+
llmConfig: component.llmConfig?.properties || {},
|
|
531
527
|
});
|
|
532
528
|
// 添加section描述
|
|
533
529
|
sectionSchemas[sectionName] = zodSchema.describe(section.templateDescription || '');
|