diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..721b926 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,33 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": ".NET Core Launch (web)", + "type": "coreclr", + "request": "launch", + "preLaunchTask": "build", + "program": "${workspaceFolder}/src/AIHub/bin/Debug/net8.0/AIHub.dll", + "args": [], + "cwd": "${workspaceFolder}/src/AIHub", + "stopAtEntry": false, + "serverReadyAction": { + "action": "openExternally", + "pattern": "\\bNow listening on:\\s+(https?://\\S+)" + }, + "env": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "sourceFileMap": { + "/Views": "${workspaceFolder}/Views" + } + }, + { + "name": ".NET Core Attach", + "type": "coreclr", + "request": "attach" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..3b66ff6 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "command": "dotnet", + "type": "process", + "args": [ + "build", + "${workspaceFolder}/src/AIHub/AIHub.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "publish", + "command": "dotnet", + "type": "process", + "args": [ + "publish", + "${workspaceFolder}/src/AIHub/AIHub.sln", + "/property:GenerateFullPaths=true", + "/consoleloggerparameters:NoSummary;ForceNoAlign" + ], + "problemMatcher": "$msCompile" + }, + { + "label": "watch", + "command": "dotnet", + "type": "process", + "args": [ + "watch", + "run", + "--project", + "${workspaceFolder}/src/AIHub/AIHub.sln" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file diff --git a/infra/modules/openai/main.tf b/infra/modules/openai/main.tf index 8d07996..d2778f2 100644 --- a/infra/modules/openai/main.tf +++ b/infra/modules/openai/main.tf @@ -20,7 +20,7 @@ resource "azurerm_cognitive_deployment" "this" { scale { type = "Standard" - capacity = 120 + capacity = 40 } } @@ -36,7 +36,7 @@ resource "azurerm_cognitive_deployment" "embedding" { scale { type = "Standard" - capacity = 120 + capacity = 40 } } @@ -52,7 +52,7 @@ resource "azurerm_cognitive_deployment" "gpt4" { scale { type = "Standard" - capacity = 120 + capacity = 40 } } diff --git a/infra/variables.tf b/infra/variables.tf index a0318e9..99d50fe 100644 --- a/infra/variables.tf +++ b/infra/variables.tf @@ -95,7 +95,7 @@ variable "ca_prep_docs_image" { } variable "ca_aihub_image" { - default = "ghcr.io/azure/aihub/aihub:1.0.1" + default = "ghcr.io/azure/aihub/aihub:1.0.2-preview.17" } variable "use_random_suffix" {