Skip to content

Commit addea43

Browse files
authored
Update to SK 1.0 beta 8 (#638)
### Motivation and Context Keeping up with the latest and greatest ### Description Update NuGets ### Contribution Checklist - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [Contribution Guidelines](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/chat-copilot/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄
1 parent 6403cc6 commit addea43

21 files changed

+76
-80
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ By default, Chat Copilot runs locally without authentication, using a guest user
280280

281281
2. **_Issue:_**: Challenges using text completion models, such as `text-davinci-003`
282282

283-
_Solution_: For OpenAI, see [model endpoint compatibility](https://platform.openai.com/docs/models/) for
283+
_Solution_: For OpenAI, see [model endpoint compatibility](https://platform.openai.com/docs/models/model-endpoint-compatibility) for
284284
the complete list of current models supporting chat completions. For Azure OpenAI, see [model summary table and region availability](https://learn.microsoft.com/azure/ai-services/openai/concepts/models#model-summary-table-and-region-availability).
285285

286286
3. **_Issue:_** Localhost SSL certificate errors / CORS errors

integration-tests/ChatCopilotIntegrationTests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
1616
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.0" />
1717
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
18-
<PackageReference Include="xunit" Version="2.6.1" />
19-
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
18+
<PackageReference Include="xunit" Version="2.6.2" />
19+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2121
<PrivateAssets>all</PrivateAssets>
2222
</PackageReference>

memorypipeline/CopilotChatMemoryPipeline.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
<ItemGroup>
1717
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.21.0" />
18-
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.10.231116.1-preview" />
19-
<PackageReference Include="Microsoft.SemanticKernel" Version="1.0.0-beta7" />
18+
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.10.231117.1-preview" />
19+
<PackageReference Include="Microsoft.SemanticKernel" Version="1.0.0-beta8" />
2020
</ItemGroup>
2121

2222
</Project>

plugins/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Read more about plugin authentication here: [Plugin authentication](https://plat
2828
### Prerequisites
2929

3030
1. The name of your plugin. This should be identical to the `NameForHuman` in your plugin manifest.
31-
> Please refer to OpenAI for the [manifest requirements](https://platform.openai.com/docs/plugins/getting-started/).
31+
> Please refer to OpenAI for the [manifest requirements](https://platform.openai.com/docs/plugins/getting-started/plugin-manifest).
3232
2. Url of your plugin.
3333
> This should be the root url to your API. Not the manifest url nor the OpenAPI spec url.
3434
3. (Optional) Key of the plugin if it requires one.

plugins/shared/PluginManifest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Plugins.PluginShared;
66

77
/// <summary>
88
/// This class represents the OpenAI plugin manifest:
9-
/// https://platform.openai.com/docs/plugins/getting-started
9+
/// https://platform.openai.com/docs/plugins/getting-started/plugin-manifest
1010
/// </summary>
1111
public class PluginManifest
1212
{

shared/CopilotChatShared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.10.231116.1-preview" />
12+
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.10.231117.1-preview" />
1313
<PackageReference Include="Tesseract" Version="5.2.0" />
1414
</ItemGroup>
1515

webapi/Controllers/ChatArchiveController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private async Task<List<Citation>> GetMemoryRecordsAndAppendToEmbeddingsAsync(
174174
/// </summary>
175175
/// <param name="chatId">The chat id</param>
176176
/// <returns>The list of chat messages in descending order of the timestamp</returns>
177-
private async Task<List<ChatMessage>> GetAllChatMessagesAsync(string chatId)
177+
private async Task<List<CopilotChatMessage>> GetAllChatMessagesAsync(string chatId)
178178
{
179179
return (await this._chatMessageRepository.FindByChatIdAsync(chatId))
180180
.OrderByDescending(m => m.Timestamp).ToList();

webapi/Controllers/ChatHistoryController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public async Task<IActionResult> CreateChatSessionAsync(
9898
await this._sessionRepository.CreateAsync(newChat);
9999

100100
// Create initial bot message
101-
var chatMessage = ChatMessage.CreateBotResponseMessage(
101+
var chatMessage = CopilotChatMessage.CreateBotResponseMessage(
102102
newChat.Id,
103103
this._promptOptions.InitialBotMessage,
104104
string.Empty, // The initial bot message doesn't need a prompt.

webapi/Controllers/DocumentController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,11 @@ private async Task<bool> TryStoreMemoryAsync(MemorySource memorySource)
440440
/// <param name="chatId">The target chat-id</param>
441441
/// <param name="documentMessageContent">The document message content</param>
442442
/// <returns>A ChatMessage object if successful, null otherwise</returns>
443-
private async Task<ChatMessage?> TryCreateDocumentUploadMessage(
443+
private async Task<CopilotChatMessage?> TryCreateDocumentUploadMessage(
444444
Guid chatId,
445445
DocumentMessageContent documentMessageContent)
446446
{
447-
var chatMessage = ChatMessage.CreateDocumentMessage(
447+
var chatMessage = CopilotChatMessage.CreateDocumentMessage(
448448
this._authInfo.UserId,
449449
this._authInfo.Name, // User name
450450
chatId.ToString(),

webapi/CopilotChatWebApi.csproj

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.21.0" />
2222
<PackageReference Include="Microsoft.Azure.Cosmos" Version="3.36.0" />
2323
<PackageReference Include="Microsoft.Identity.Web" Version="2.15.3" />
24-
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.10.231116.1-preview" />
25-
<PackageReference Include="Microsoft.SemanticKernel" Version="1.0.0-beta7" />
26-
<PackageReference Include="Microsoft.SemanticKernel.Abstractions" Version="1.0.0-beta7" />
27-
<PackageReference Include="Microsoft.SemanticKernel.Connectors.AI.OpenAI" Version="1.0.0-beta7" />
28-
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Memory.AzureCognitiveSearch" Version="1.0.0-beta7" />
29-
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Memory.Qdrant" Version="1.0.0-beta7" />
30-
<PackageReference Include="Microsoft.SemanticKernel.Functions.OpenAPI" Version="1.0.0-beta7" />
31-
<PackageReference Include="Microsoft.SemanticKernel.Planners.Core" Version="1.0.0-beta7" />
32-
<PackageReference Include="Microsoft.SemanticKernel.Plugins.Core" Version="1.0.0-beta7" />
33-
<PackageReference Include="Microsoft.SemanticKernel.Plugins.MsGraph" Version="1.0.0-beta7" />
34-
<PackageReference Include="Microsoft.SemanticKernel.Plugins.Web" Version="1.0.0-beta7" />
35-
<PackageReference Include="Microsoft.SemanticKernel.TemplateEngine.Basic" Version="1.0.0-beta7" />
24+
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.10.231117.1-preview" />
25+
<PackageReference Include="Microsoft.SemanticKernel" Version="1.0.0-beta8" />
26+
<PackageReference Include="Microsoft.SemanticKernel.Abstractions" Version="1.0.0-beta8" />
27+
<PackageReference Include="Microsoft.SemanticKernel.Connectors.AI.OpenAI" Version="1.0.0-beta8" />
28+
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Memory.AzureCognitiveSearch" Version="1.0.0-beta8" />
29+
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Memory.Qdrant" Version="1.0.0-beta8" />
30+
<PackageReference Include="Microsoft.SemanticKernel.Functions.OpenAPI" Version="1.0.0-beta8" />
31+
<PackageReference Include="Microsoft.SemanticKernel.Planners.Core" Version="1.0.0-beta8" />
32+
<PackageReference Include="Microsoft.SemanticKernel.Plugins.Core" Version="1.0.0-beta8" />
33+
<PackageReference Include="Microsoft.SemanticKernel.Plugins.MsGraph" Version="1.0.0-beta8" />
34+
<PackageReference Include="Microsoft.SemanticKernel.Plugins.Web" Version="1.0.0-beta8" />
35+
<PackageReference Include="Microsoft.SemanticKernel.TemplateEngine.Basic" Version="1.0.0-beta8" />
3636
<PackageReference Include="SharpToken" Version="1.2.12" />
3737
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
3838
</ItemGroup>
@@ -42,7 +42,7 @@
4242
</ItemGroup>
4343

4444
<ItemGroup>
45-
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0-preview1.23165.1">
45+
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0">
4646
<PrivateAssets>all</PrivateAssets>
4747
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4848
</PackageReference>

0 commit comments

Comments
 (0)