diff --git a/fluentui-ard/Connections/Connections.json b/fluentui-ard/Connections/Connections.json index 8c88a53aa12f5d5061cc767bd2246b2b9c776563..d5edbfb27dc2aba0c6fad36a4ca43f33cb6b1da0 100644 --- a/fluentui-ard/Connections/Connections.json +++ b/fluentui-ard/Connections/Connections.json @@ -51,6 +51,36 @@ ], "id": "76079069-80c3-4221-84a0-4688a3d9cff1" }, + "d71e590f-aded-48fa-981e-c338666cb9a8": { + "connectionRef": { + "displayName": "Logic flows", + "iconUri": "https://connectoricons-prod.azureedge.net/releases/v1.0.1664/1.0.1664.3477/logicflows/icon.png", + "id": "/providers/microsoft.powerapps/apis/shared_logicflows", + "parameterHints": { + "workflowEntityId": { + "value": "f9b1673a-b2be-ee11-9079-0022488291be" + }, + "workflowName": { + "value": "6488d363-76ae-b972-fcad-4dff67e60417" + } + }, + "parameterHintsV2": { + "workflowEntityId": { + "value": "f9b1673a-b2be-ee11-9079-0022488291be" + }, + "workflowName": { + "value": "6488d363-76ae-b972-fcad-4dff67e60417" + } + } + }, + "datasets": {}, + "dataSources": [ + "ConnectAzureOpenaiT" + ], + "dependencies": {}, + "dependents": [], + "id": "d71e590f-aded-48fa-981e-c338666cb9a8" + }, "dd997e22-3bdb-48cb-af6f-587b3b988bb4": { "connectionRef": { "displayName": "Office 365 Outlook", diff --git a/fluentui-ard/DataSources/ConnectAzureOpenaiT.json b/fluentui-ard/DataSources/ConnectAzureOpenaiT.json new file mode 100644 index 0000000000000000000000000000000000000000..cedd64370f1518e36aebb42107455b78214c9634 --- /dev/null +++ b/fluentui-ard/DataSources/ConnectAzureOpenaiT.json @@ -0,0 +1,10 @@ +[ + { + "ApiId": "/providers/microsoft.powerapps/apis/shared_logicflows", + "FlowNameId": "caf4d636-9c58-423a-ae27-48942b657596", + "Name": "ConnectAzureOpenaiT", + "ServiceKind": "ConnectedWadl", + "Type": "ServiceInfo", + "WorkflowEntityId": "f9b1673a-b2be-ee11-9079-0022488291be" + } +] \ No newline at end of file diff --git a/fluentui-ard/Entropy/Entropy.json b/fluentui-ard/Entropy/Entropy.json index 9c8797d2e4d36da4f1513286f85f056fda3b946d..48dda499f432744e0c5d0384601a8e6bc0ff6983 100644 --- a/fluentui-ard/Entropy/Entropy.json +++ b/fluentui-ard/Entropy/Entropy.json @@ -27,11 +27,12 @@ "DoesTestStepsMetadataExist": true, "FunctionParamsInvariantScripts": {}, "FunctionParamsInvariantScriptsOnInstances": {}, - "HeaderLastSavedDateTimeUTC": "01/30/2024 13:23:57", + "HeaderLastSavedDateTimeUTC": "01/30/2024 13:25:06", "IsLegacyComponentAllowGlobalScopeCase": false, "LocalConnectionIDReferences": { "028e7b29-d321-4e48-a760-c92538b0678a": "\"/providers/microsoft.powerapps/apis/shared_logicflows/connections/ec84356e395faa1b0fdf1c7e126b562e-c1654a69e558fc9f\"", "76079069-80c3-4221-84a0-4688a3d9cff1": "\"/providers/microsoft.powerapps/apis/shared_azure-2dopenai-2dconnector-5f1d98e22a441b0e2d-5f3739fab3a930da50/connections/shared-azure-2dopena-3f4cdc89-63b5-4018-882d-1f1c97eb18e0\"", + "d71e590f-aded-48fa-981e-c338666cb9a8": "\"/providers/Microsoft.PowerApps/apis/shared_logicflows/connections/6488D36376AEB972FCAD4DFF67E60417-C1654A69E558FC9F\"", "dd997e22-3bdb-48cb-af6f-587b3b988bb4": "\"/providers/microsoft.powerapps/apis/shared_office365/connections/shared-office365-4f712e21-7360-4723-a8e1-b17877eae069\"" }, "LocalDatabaseReferencesAsEmpty": false, @@ -47,8 +48,9 @@ "OrderComponentTemplate": {}, "OrderDataSource": { "ConnectAzureOpenai": 0, - "DropDownSample": 2, - "gptconv": 3, + "ConnectAzureOpenaiT": 2, + "DropDownSample": 3, + "gptconv": 4, "Office365Outlook": 1 }, "OrderGroupControls": {}, diff --git a/fluentui-ard/Entropy/checksum.json b/fluentui-ard/Entropy/checksum.json index 3bca33c71537269b78b55eaef794f9e584c3e713..1897a2154cc822604cacecfb3ff600b48224e17d 100644 --- a/fluentui-ard/Entropy/checksum.json +++ b/fluentui-ard/Entropy/checksum.json @@ -9,10 +9,10 @@ "Assets\\Images\\0001.png": "C8_D0WGiAaxVuIcUWpkdQuVcyQy/gSJZuMRDwL63zxJhAk=", "Assets\\Images\\0002.jpg": "C8_Tc/HGdQ62xbtBm/41G1l7DIpMm/RT0cgmhtJyanyURs=", "Controls\\1.json": "C8_kmQ9ZBliKRUlK7WAiimFjKljGhL8xYPYPAr39QvEmuI=", - "Controls\\4.json": "C8_qcOcebs92WQbjg6MxYtt/yCUAFX+LOBpD2CaR+MkYM8=", - "Header.json": "C8_OdXPXKWnbK2weH/o92OPx1Y0KPZny/NIVgeC0FJiOss=", - "Properties.json": "C8_YK2CFIMB06GJ9T/H/Z428L3h8cprVOuwHCh4I+3wW8o=", - "References\\DataSources.json": "C8_4wce0SLBcifQ3nFJIN2LgjLOxD+daAMfT39hi3zsH5U=", + "Controls\\4.json": "C8_6QHQt1P2Bw8ppSvNNucAdIdRhJx+Z4qUrxsq6mPXKM4=", + "Header.json": "C8_fvz1oZlPwGppbpfem4o8fH20SW2NhDyuCSkGNqTqfes=", + "Properties.json": "C8_xXySfjwl8NcuWuGj86r++PW5vS66Vm4Egkop6++qIrk=", + "References\\DataSources.json": "C8_ab+p2Tbea2X3Q7RgeXch8kAVtCNlYkgOkRBiBI70weU=", "References\\ModernThemes.json": "C8_KDQJ/3t27vgKx25iCQB/PGqxkWE34ZB7Eyb+RxNxY0k=", "References\\QualifiedValues.json": "C8_El4FiKqe0MNuyanHlgG0pvhEijIXFigAGYgvdl/aCtk=", "References\\Resources.json": "C8_UCSn5Xd5d97Qke4avkSXhFFz85md97y7YwuQJ+1IvLA=", @@ -20,17 +20,17 @@ "References\\Themes.json": "C8_zuMgLpz3IJQlVgGqo3GtyhriL3PR35GxXf+rtPR4Gfc=", "Resources\\PublishInfo.json": "C8_L9UhOWDoS/LUj0KodcbQiXLqewg00O5iSZA4+bCdTGs=" }, - "ClientStampedChecksum": "C8_CepuqY9lBh5EjpzWIUEWt9aI7d8ZQvpaHANDvCUtPrE=", + "ClientStampedChecksum": "C8_l5W8y1fwheciXp3yOnk15GBRD/43+FljhW6qupu+yCs=", "ServerPerFileChecksums": { "AppCheckerResult.sarif": "C8_3t2WeT90ZZnCsWrm/m30YSp2FW1pTDJyhqpSzUHhGR8=", "AppTests\\2.json": "C8_e7iNKGdPmvGBQG8t0GHgxl3LWfan9OmlJR4cLuSEmT0=", "Assets\\Images\\0001.png": "C8_D0WGiAaxVuIcUWpkdQuVcyQy/gSJZuMRDwL63zxJhAk=", "Assets\\Images\\0002.jpg": "C8_Tc/HGdQ62xbtBm/41G1l7DIpMm/RT0cgmhtJyanyURs=", "Controls\\1.json": "C8_kmQ9ZBliKRUlK7WAiimFjKljGhL8xYPYPAr39QvEmuI=", - "Controls\\4.json": "C8_qcOcebs92WQbjg6MxYtt/yCUAFX+LOBpD2CaR+MkYM8=", - "Header.json": "C8_OdXPXKWnbK2weH/o92OPx1Y0KPZny/NIVgeC0FJiOss=", - "Properties.json": "C8_YK2CFIMB06GJ9T/H/Z428L3h8cprVOuwHCh4I+3wW8o=", - "References\\DataSources.json": "C8_4wce0SLBcifQ3nFJIN2LgjLOxD+daAMfT39hi3zsH5U=", + "Controls\\4.json": "C8_6QHQt1P2Bw8ppSvNNucAdIdRhJx+Z4qUrxsq6mPXKM4=", + "Header.json": "C8_fvz1oZlPwGppbpfem4o8fH20SW2NhDyuCSkGNqTqfes=", + "Properties.json": "C8_xXySfjwl8NcuWuGj86r++PW5vS66Vm4Egkop6++qIrk=", + "References\\DataSources.json": "C8_ab+p2Tbea2X3Q7RgeXch8kAVtCNlYkgOkRBiBI70weU=", "References\\ModernThemes.json": "C8_KDQJ/3t27vgKx25iCQB/PGqxkWE34ZB7Eyb+RxNxY0k=", "References\\QualifiedValues.json": "C8_El4FiKqe0MNuyanHlgG0pvhEijIXFigAGYgvdl/aCtk=", "References\\Resources.json": "C8_UCSn5Xd5d97Qke4avkSXhFFz85md97y7YwuQJ+1IvLA=", @@ -38,5 +38,5 @@ "References\\Themes.json": "C8_zuMgLpz3IJQlVgGqo3GtyhriL3PR35GxXf+rtPR4Gfc=", "Resources\\PublishInfo.json": "C8_L9UhOWDoS/LUj0KodcbQiXLqewg00O5iSZA4+bCdTGs=" }, - "ServerStampedChecksum": "C8_CepuqY9lBh5EjpzWIUEWt9aI7d8ZQvpaHANDvCUtPrE=" + "ServerStampedChecksum": "C8_l5W8y1fwheciXp3yOnk15GBRD/43+FljhW6qupu+yCs=" } \ No newline at end of file diff --git a/fluentui-ard/Src/BaseScreen.fx.yaml b/fluentui-ard/Src/BaseScreen.fx.yaml index 9d7cf135db11fea64e80f3d1fd40fd4d7c7fbbe6..077ad9e12ffbf4b45af1efc39f72a83deed71c14 100644 --- a/fluentui-ard/Src/BaseScreen.fx.yaml +++ b/fluentui-ard/Src/BaseScreen.fx.yaml @@ -298,7 +298,7 @@ BaseScreen As screen: textinput1.Text; // you behave1.SelectedText.'data-ADB4D7A662F548B49FAC2B986E348A1BVal'; // sys // Send to Azure - Set(assiresp, ConnectAzureOpenai.Run(textinput1.Text, Creativity, behave1.SelectedText.'data-ADB4D7A662F548B49FAC2B986E348A1BVal')); // Assi + Set(assiresp, ConnectAzureOpenaiT.Run(textinput1.Text, Creativity, behave1.SelectedText.'data-ADB4D7A662F548B49FAC2B986E348A1BVal')); // Assi // write into collection Set(msgcnt, msgcnt+1); diff --git a/fluentui-ard/pkgs/Wadl/ConnectAzureOpenaiT.xml b/fluentui-ard/pkgs/Wadl/ConnectAzureOpenaiT.xml new file mode 100644 index 0000000000000000000000000000000000000000..ce0fae3e330db663e0ae28b52a3a944a4eeb6ea4 --- /dev/null +++ b/fluentui-ard/pkgs/Wadl/ConnectAzureOpenaiT.xml @@ -0,0 +1,57 @@ +<application xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:service="https://europe-002.azure-apim.net/apim/logicflows" xmlns:siena="http://schemas.microsoft.com/MicrosoftProjectSiena/WADL/2014/11" siena:serviceId="ConnectAzureOpenaiT" xmlns="http://wadl.dev.java.net/2009/02"> + <doc title="ConnectAzureOpenaiT" /> + <grammars> + <jsonTypes targetNamespace="https://europe-002.azure-apim.net/apim/logicflows" xmlns="http://schemas.microsoft.com/MicrosoftProjectSiena/WADL/2014/11"> + <string name="ManualTriggerInput_text_def" /> + <number name="ManualTriggerInput_number_def" /> + <string name="ManualTriggerInput_text_1_def" /> + <object name="ManualTriggerInput"> + <property name="text" type="string" /> + <property name="number" type="number" /> + <property name="text_1" type="string" /> + </object> + <string name="ResponseActionOutput_assi_def" /> + <number name="ResponseActionOutput_ttokens_def" /> + <object name="ResponseActionOutput"> + <property name="assi" type="string" /> + <property name="ttokens" type="number" /> + </object> + <object name="Run_responses_default_def" /> + </jsonTypes> + </grammars> + <resources siena:authenticationProviderHref="#PowerAppAuth" base="https://europe-002.azure-apim.net/apim/logicflows"> + <resource path="/{connectionId}/triggers/manual/run"> + <param style="template" name="connectionId" type="xs:string" required="true" /> + <method siena:requiresAuthentication="true" name="POST" id="Run"> + <doc title="Runs a logic flow trigger." /> + <request> + <param style="query" name="api-version" type="xs:string" required="true" fixed="2015-02-01-preview"> + <doc title="The api version" /> + </param> + <representation mediaType="application/json"> + <param style="plain" name="text" path="/text" type="xs:string" required="true"> + <doc title="prompt1" /> + </param> + <param style="plain" name="number" path="/number" type="xs:double" required="true"> + <doc title="creativity1" /> + </param> + <param style="plain" name="text_1" path="/text_1" type="xs:string" required="true"> + <doc title="behave1" /> + </param> + </representation> + </request> + <response> + <representation mediaType="application/json" element="service:ResponseActionOutput" /> + </response> + </method> + </resource> + </resources> + <authenticationProviders xmlns="http://schemas.microsoft.com/MicrosoftProjectSiena/WADL/2014/11"> + <connectionProvider id="PowerAppAuth" siena:connectionProviderId="logicflows" /> + </authenticationProviders> + <template xmlns="http://schemas.microsoft.com/MicrosoftProjectSiena/WADL/2014/11"> + <variable name="connectionId"> + <modifyParams style="template" name="connectionId" attribute="fixed" /> + </variable> + </template> +</application> \ No newline at end of file