@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.
|
@@ -320,7 +320,7 @@ export function generatePageDataJsonSchemasWithZod(state) {
|
|
|
320
320
|
// 使用Zod生成JSON Schema
|
|
321
321
|
const properties = generatePropertiesJsonSchemaWithZod({
|
|
322
322
|
properties: component.properties || {},
|
|
323
|
-
llmConfig:
|
|
323
|
+
llmConfig: component.llmConfig?.properties || {},
|
|
324
324
|
});
|
|
325
325
|
if (Object.keys(properties).length > 0) {
|
|
326
326
|
sectionProperties[sectionName] = {
|
|
@@ -482,11 +482,7 @@ export function generatePageDataZodToAgent(state, pageId) {
|
|
|
482
482
|
const zodSchema = propertiesToZodSchema(component.properties || {}, {
|
|
483
483
|
addZodDescribe: false,
|
|
484
484
|
skipAnyType: true,
|
|
485
|
-
|
|
486
|
-
* @tip 历史原因:section.llmConfig 是在页面模板配置的,component.llmConfig 是在组件配置的,存在一定的优先级关系
|
|
487
|
-
* section.llmConfig > component.llmConfig
|
|
488
|
-
*/
|
|
489
|
-
llmConfig: section.llmConfig?.properties || component.llmConfig?.properties || {},
|
|
485
|
+
llmConfig: component.llmConfig?.properties || {},
|
|
490
486
|
});
|
|
491
487
|
// 添加section描述
|
|
492
488
|
sectionSchemas[sectionName] = zodSchema.describe(section.templateDescription || '');
|