diff options
| author | Roy Ben Shabat <roy.mail.net@gmail.com> | 2025-09-02 20:50:29 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <roy.mail.net@gmail.com> | 2025-09-02 20:50:29 +0300 |
| commit | 12184412615b52ae98cba57921a7586e6970c436 (patch) | |
| tree | 52d9d07d0825025be9e7c450d6c758af2644c2fe /Software | |
| parent | dc0d050ad35973e1ae09e3c7e47bc1fb13eedcd2 (diff) | |
| download | Tango-12184412615b52ae98cba57921a7586e6970c436.tar.gz Tango-12184412615b52ae98cba57921a7586e6970c436.zip | |
AI Deploy.
Diffstat (limited to 'Software')
3 files changed, 150 insertions, 2 deletions
diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/PublishProfiles/machineservice-gateway-twine-portal-ai - Web Deploy.pubxml b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/PublishProfiles/machineservice-gateway-twine-portal-ai - Web Deploy.pubxml new file mode 100644 index 000000000..e6ca68390 --- /dev/null +++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/PublishProfiles/machineservice-gateway-twine-portal-ai - Web Deploy.pubxml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +This file is used by the publish/package process of your Web project. You can customize the behavior of this process +by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121. +--> +<Project> + <PropertyGroup> + <WebPublishMethod>MSDeploy</WebPublishMethod> + <ResourceId>/subscriptions/10c8aa60-3b15-4e0d-b412-6aeef90e5e91/resourceGroups/Tango/providers/Microsoft.Web/sites/machineservice-gateway/slots/twine-portal-ai</ResourceId> + <ResourceGroup>Tango</ResourceGroup> + <PublishProvider>AzureWebSite</PublishProvider> + <LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration> + <LastUsedPlatform>Any CPU</LastUsedPlatform> + <SiteUrlToLaunchAfterPublish>https://machineservice-gateway-twine-portal-ai.azurewebsites.net</SiteUrlToLaunchAfterPublish> + <LaunchSiteAfterPublish>true</LaunchSiteAfterPublish> + <ExcludeApp_Data>false</ExcludeApp_Data> + <ProjectGuid>f044e4a1-1d9c-b93c-28c5-e9e5a44a038d</ProjectGuid> + <MSDeployServiceURL>machineservice-gateway-twine-portal-ai.scm.azurewebsites.net:443</MSDeployServiceURL> + <DeployIisAppPath>machineservice-gateway__twine-portal-ai</DeployIisAppPath> + <RemoteSitePhysicalPath /> + <SkipExtraFilesOnServer>true</SkipExtraFilesOnServer> + <MSDeployPublishMethod>WMSVC</MSDeployPublishMethod> + <EnableMSDeployBackup>true</EnableMSDeployBackup> + <EnableMsDeployAppOffline>true</EnableMsDeployAppOffline> + <UserName /> + <_SavePWD>false</_SavePWD> + <_DestinationType>AzureWebSite</_DestinationType> + <InstallAspNetCoreSiteExtension>false</InstallAspNetCoreSiteExtension> + </PropertyGroup> +</Project>
\ No newline at end of file diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/ServiceDependencies/machineservice-gateway-twine-portal-ai - Web Deploy/profile.arm.json b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/ServiceDependencies/machineservice-gateway-twine-portal-ai - Web Deploy/profile.arm.json new file mode 100644 index 000000000..e07bae316 --- /dev/null +++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/Properties/ServiceDependencies/machineservice-gateway-twine-portal-ai - Web Deploy/profile.arm.json @@ -0,0 +1,113 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "metadata": { + "_dependencyType": "compute.appService.windows" + }, + "parameters": { + "resourceGroupName": { + "type": "string", + "defaultValue": "Tango", + "metadata": { + "description": "Name of the resource group for the resource. It is recommended to put resources under same resource group for better tracking." + } + }, + "resourceGroupLocation": { + "type": "string", + "defaultValue": "westeurope", + "metadata": { + "description": "Location of the resource group. Resource groups could have different location than resources, however by default we use API versions from latest hybrid profile which support all locations for resource types we support." + } + }, + "resourceName": { + "type": "string", + "defaultValue": "twine-portal-ai", + "metadata": { + "description": "Name of the main resource to be created by this template." + } + }, + "resourceLocation": { + "type": "string", + "defaultValue": "[parameters('resourceGroupLocation')]", + "metadata": { + "description": "Location of the resource. By default use resource group's location, unless the resource provider is not supported there." + } + } + }, + "variables": { + "appServicePlan_name": "[concat('Plan', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]", + "appServicePlan_ResourceId": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/', parameters('resourceGroupName'), '/providers/Microsoft.Web/serverFarms/', variables('appServicePlan_name'))]" + }, + "resources": [ + { + "type": "Microsoft.Resources/resourceGroups", + "name": "[parameters('resourceGroupName')]", + "location": "[parameters('resourceGroupLocation')]", + "apiVersion": "2019-10-01" + }, + { + "type": "Microsoft.Resources/deployments", + "name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat(parameters('resourceName'), subscription().subscriptionId)))]", + "resourceGroup": "[parameters('resourceGroupName')]", + "apiVersion": "2019-10-01", + "dependsOn": [ + "[parameters('resourceGroupName')]" + ], + "properties": { + "mode": "Incremental", + "template": { + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "resources": [ + { + "location": "[parameters('resourceLocation')]", + "name": "[parameters('resourceName')]", + "type": "Microsoft.Web/sites", + "apiVersion": "2015-08-01", + "tags": { + "[concat('hidden-related:', variables('appServicePlan_ResourceId'))]": "empty" + }, + "dependsOn": [ + "[variables('appServicePlan_ResourceId')]" + ], + "kind": "app", + "properties": { + "name": "[parameters('resourceName')]", + "kind": "app", + "httpsOnly": true, + "reserved": false, + "serverFarmId": "[variables('appServicePlan_ResourceId')]", + "siteConfig": { + "metadata": [ + { + "name": "CURRENT_STACK", + "value": "dotnetcore" + } + ] + } + }, + "identity": { + "type": "SystemAssigned" + } + }, + { + "location": "[parameters('resourceLocation')]", + "name": "[variables('appServicePlan_name')]", + "type": "Microsoft.Web/serverFarms", + "apiVersion": "2015-08-01", + "sku": { + "name": "S1", + "tier": "Standard", + "family": "S", + "size": "S1" + }, + "properties": { + "name": "[variables('appServicePlan_name')]" + } + } + ] + } + } + } + ] +}
\ No newline at end of file diff --git a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/appsettings.json b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/appsettings.json index c5bebc38f..f2ed0fa2e 100644 --- a/Software/Visual_Studio_22/Tango.Portal.Chat.Web/appsettings.json +++ b/Software/Visual_Studio_22/Tango.Portal.Chat.Web/appsettings.json @@ -10,11 +10,16 @@ "Endpoint": "https://api.openai.com/v1/chat/completions", "ApiKey": "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", "Model": "gpt-4o-mini", - "Temperature": 0.2 + "Temperature": 0.2, + "AnswererAssistantId": "asst_JRKGFqWUYG2rP6CptUgyVcJk", + "DocsAssistantId": "asst_HQ0C8tsdtzjENITM4qq6kFpz" }, "ADX": { "ClusterUri": "https://adx-twine.westeurope.kusto.windows.net/", - "Database": "twine-dev" + "Database": "twine-dev", + "TenantId": "2ebd63a5-bc2f-41dc-9066-4409ed5e5dd4", + "ClientId": "ec612854-7abc-457b-808a-5d0c5ba80c57", + "ClientSecret": "C6n8Q~-NgsAQ6yYJwoNABkcVUNSm2~8-8xNgaa32" }, "AllowedHosts": "*" }
\ No newline at end of file |
