Skip to content

Commit

Permalink
Copilot Chat Tasks - Rename CopilotChatApi to CopilotChatWebApi (micr…
Browse files Browse the repository at this point in the history
…osoft#1205)

This commit renames the CopilotChatApi project and related files to
CopilotChatWebApi, to avoid confusion with the CopilotChatApp project
and to follow the naming convention of other webapi projects in the
solution. It also updates the launch and task configurations in VSCode
to reflect the new name.

Co-authored-by: Lee Miller <[email protected]>
  • Loading branch information
lemillermicrosoft and lemillermicrosoft authored May 25, 2023
1 parent 7445285 commit 35cb1bf
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 226 deletions.
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (CopilotChatApi)",
"name": ".NET Core Launch (CopilotChatWebApi)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build (CopilotChatApi)",
"preLaunchTask": "build (CopilotChatWebApi)",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/samples/apps/copilot-chat-app/webapi/bin/Debug/net6.0/CopilotChatApi.dll",
"program": "${workspaceFolder}/samples/apps/copilot-chat-app/webapi/bin/Debug/net6.0/CopilotChatWebApi.dll",
"args": [],
"cwd": "${workspaceFolder}/samples/apps/copilot-chat-app/webapi",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
Expand Down
72 changes: 13 additions & 59 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
"label": "run (Copilot Chat)",
"detail": "Run all copilot chat components",
"group": "test",
"dependsOn": ["run (CopilotChatApi)", "run (CopilotChatApp)"],
"dependsOn": ["run (CopilotChatWebApi)", "run (CopilotChatApp)"],
"dependsOrder": "parallel"
},
// Copilot Setup
Expand All @@ -256,51 +256,19 @@
"label": "setup (Copilot Chat)",
"detail": "Setup (like setting secrets) for copilot chat app and api",
"group": "test",
"dependsOn": [
"GetSecret (Completion:Key)",
"GetSecret (Embedding:Key)",
"GetSecret (Planner:Key)"
],
"dependsOn": ["GetSecret (AIService:Key)"],
"dependsOrder": "sequence"
// TODO -- add tasks for configuring environment variables
},
{
"label": "GetSecret (Completion:Key)",
"command": "dotnet",
"type": "process",
"args": [
"user-secrets",
"set",
"Completion:Key",
"${input:completionSecret}"
],
"options": {
"cwd": "${workspaceFolder}/samples/apps/copilot-chat-app/webapi"
}
},
{
"label": "GetSecret (Embedding:Key)",
"command": "dotnet",
"type": "process",
"args": [
"user-secrets",
"set",
"Embedding:Key",
"${input:embeddingSecret}"
],
"options": {
"cwd": "${workspaceFolder}/samples/apps/copilot-chat-app/webapi"
}
},
{
"label": "GetSecret (Planner:Key)",
"label": "GetSecret (AIService:Key)",
"command": "dotnet",
"type": "process",
"args": [
"user-secrets",
"set",
"Planner:AIService:Key",
"${input:plannerSecret}"
"AIService:Key",
"${input:aiServiceSecret}"
],
"options": {
"cwd": "${workspaceFolder}/samples/apps/copilot-chat-app/webapi"
Expand Down Expand Up @@ -339,12 +307,12 @@
},
// Copilot Chat Api
{
"label": "build (CopilotChatApi)",
"label": "build (CopilotChatWebApi)",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/samples/apps/copilot-chat-app/webapi/CopilotChatApi.csproj",
"${workspaceFolder}/samples/apps/copilot-chat-app/webapi/CopilotChatWebApi.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary",
"/property:DebugType=portable"
Expand All @@ -353,13 +321,13 @@
"group": "build"
},
{
"label": "run (CopilotChatApi)",
"label": "run (CopilotChatWebApi)",
"command": "dotnet",
"type": "process",
"args": [
"run",
"--project",
"${workspaceFolder}/samples/apps/copilot-chat-app/webapi/CopilotChatApi.csproj"
"${workspaceFolder}/samples/apps/copilot-chat-app/webapi/CopilotChatWebApi.csproj"
],
"problemMatcher": "$msCompile",
"group": "test",
Expand All @@ -370,14 +338,14 @@
}
},
{
"label": "watch (CopilotChatApi)",
"label": "watch (CopilotChatWebApi)",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/samples/apps/copilot-chat-app/webapi/CopilotChatApi.csproj"
"${workspaceFolder}/samples/apps/copilot-chat-app/webapi/CopilotChatWebApi.csproj"
],
"problemMatcher": "$msCompile",
"group": "build"
Expand Down Expand Up @@ -500,24 +468,10 @@
"description": "Enter a filter for the tests"
},
{
"id": "completionSecret",
"type": "promptString",
"default": "",
"description": "Enter a secret for completion",
"password": true
},
{
"id": "embeddingSecret",
"type": "promptString",
"default": "",
"description": "Enter a secret for embedding",
"password": true
},
{
"id": "plannerSecret",
"id": "aiServiceSecret",
"type": "promptString",
"default": "",
"description": "Enter a secret for planner",
"description": "Enter a secret for Copilot Chat AIService:Key",
"password": true
}
]
Expand Down
Loading

0 comments on commit 35cb1bf

Please sign in to comment.