diff --git a/api/net/TNO.API.csproj b/api/net/TNO.API.csproj index 541e065147..97669bb747 100644 --- a/api/net/TNO.API.csproj +++ b/api/net/TNO.API.csproj @@ -15,13 +15,14 @@ + - + diff --git a/api/net/appsettings.json b/api/net/appsettings.json index fa2350c1b7..18db2208b1 100644 --- a/api/net/appsettings.json +++ b/api/net/appsettings.json @@ -117,5 +117,11 @@ "Watch": { "IsEnabled": false, "SendTo": "" + }, + "Azure": { + "AI": { + "ProjectEndpoint": "", + "ModelDeploymentName": "" + } } } diff --git a/app/editor/.yarn/cache/tno-core-npm-1.0.29-b0ccc3fe82-277dacbb50.zip b/app/editor/.yarn/cache/tno-core-npm-1.0.31-a8a0b59ae3-57f0f47bb6.zip similarity index 87% rename from app/editor/.yarn/cache/tno-core-npm-1.0.29-b0ccc3fe82-277dacbb50.zip rename to app/editor/.yarn/cache/tno-core-npm-1.0.31-a8a0b59ae3-57f0f47bb6.zip index 3204dd13bb..ec119abc01 100644 Binary files a/app/editor/.yarn/cache/tno-core-npm-1.0.29-b0ccc3fe82-277dacbb50.zip and b/app/editor/.yarn/cache/tno-core-npm-1.0.31-a8a0b59ae3-57f0f47bb6.zip differ diff --git a/app/editor/package.json b/app/editor/package.json index c656da9b28..4bd9a5b890 100644 --- a/app/editor/package.json +++ b/app/editor/package.json @@ -60,7 +60,7 @@ "redux-logger": "3.0.6", "styled-components": "6.1.11", "stylis": "4.3.2", - "tno-core": "1.0.29" + "tno-core": "1.0.31" }, "devDependencies": { "@simbathesailor/use-what-changed": "2.0.0", diff --git a/app/editor/src/features/admin/report-templates/templates/body/CustomReport.cshtml b/app/editor/src/features/admin/report-templates/templates/body/CustomReport.cshtml index 15cee65cd4..7b9acce275 100644 --- a/app/editor/src/features/admin/report-templates/templates/body/CustomReport.cshtml +++ b/app/editor/src/features/admin/report-templates/templates/body/CustomReport.cshtml @@ -364,6 +364,14 @@ @(section.Value.Data) } + else if (section.Value.SectionType == ReportSectionType.AI) + { + @* AI SECTION *@ + var alt = section.Value.Settings.Label; +
+ @(section.Value.Data) +
+ } @if (!horizontalCharts && !endChartGroup) { diff --git a/app/editor/src/features/admin/reports/ReportFormSections.tsx b/app/editor/src/features/admin/reports/ReportFormSections.tsx index 062045f965..e8ef817f8d 100644 --- a/app/editor/src/features/admin/reports/ReportFormSections.tsx +++ b/app/editor/src/features/admin/reports/ReportFormSections.tsx @@ -19,6 +19,7 @@ import { ReportContentOptions, ReportHeadlineOptions, ReportOptions, + ReportSectionAI, ReportSectionContent, ReportSectionData, ReportSectionGallery, @@ -160,6 +161,12 @@ export const ReportFormSections = () => { > Text + +