Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃敡 Update ERNIE-Bot.SDK and sample projects #98

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

xbotter
Copy link
Collaborator

@xbotter xbotter commented Feb 6, 2024

  • Update Microsoft.KernelMemory.Core to version 0.27.240205.2
  • Update Microsoft.SemanticKernel.Abstractions and Microsoft.SemanticKernel.Core to version 1.3.0
  • Update Microsoft.SemanticKernel.Plugins.Core and Microsoft.SemanticKernel.Plugins.Memory to version 1.3.0-alpha
  • Update Microsoft.NET.Test.Sdk to version 17.10.0-preview-24080-01
  • Update System.Text.Json to version 8.0.1
  • Update xunit to version 2.6.6
  • Update xunit.runner.visualstudio to version 2.5.6
  • Update ERNIE-Bot-Kernel-Memory.Sample and ERNIE-Bot.Sample projects
  • Add new endpoint for JSON format in ERNIE-Bot.Sample
  • Add new endpoint for getting usage in SK-ERNIE-Bot.Sample
  • Update Directory.Build.props with new version 0.14.0
  • Update ModelEndpoints.cs with new version 1.3.0

馃敡 Update ERNIE-Bot.SDK ModelEndpoints and ChatRequest

  • Update the ERNIE_Bot_8K model endpoint in the ModelEndpoints class to have a space between the model name and the port number.
  • Update the XuanYuan_70B_Chat_4bit model endpoint in the ModelEndpoints class to remove the space between the model name and the parentheses.
  • Add a new embedding model endpoint called Tao_8k with a token size of 8192.
  • Add a new property called ResponseFormat to the ChatRequest class to specify the format of the response content.
  • Add a new property called MaxTokens to the ChatRequest class to specify the maximum number of output tokens.

Summary:

  • Updated model endpoints in the ERNIE-Bot.SDK ModelEndpoints class.
  • Added new properties to the ChatRequest class for specifying response format and maximum output tokens.

馃敡 Fix system message handling

  • Fix handling of system messages in ERNIEBotChatCompletion.cs
  • Update logic to assign system message content to 'system' variable
  • Exclude system messages from the returned chat history

馃摑 Update ERNIEBotChatMessage constructors

  • Remove unused constructor in ERNIEBotChatMessage class
  • Update existing constructor to include metadata parameter

馃摑 Update ERNIEBotStreamingChatMessage constructors

  • Remove unused constructor in ERNIEBotStreamingChatMessage class
  • Update existing constructor to include metadata parameter

- Update Microsoft.KernelMemory.Core to version 0.27.240205.2
- Update Microsoft.SemanticKernel.Abstractions and Microsoft.SemanticKernel.Core to version 1.3.0
- Update Microsoft.SemanticKernel.Plugins.Core and Microsoft.SemanticKernel.Plugins.Memory to version 1.3.0-alpha
- Update Microsoft.NET.Test.Sdk to version 17.10.0-preview-24080-01
- Update System.Text.Json to version 8.0.1
- Update xunit to version 2.6.6
- Update xunit.runner.visualstudio to version 2.5.6
- Update ERNIE-Bot-Kernel-Memory.Sample and ERNIE-Bot.Sample projects
- Add new endpoint for JSON format in ERNIE-Bot.Sample
- Add new endpoint for getting usage in SK-ERNIE-Bot.Sample
- Update Directory.Build.props with new version 0.14.0
- Update ModelEndpoints.cs with new version 1.3.0

馃敡 Update ERNIE-Bot.SDK ModelEndpoints and ChatRequest

- Update the ERNIE_Bot_8K model endpoint in the ModelEndpoints class to have a space between the model name and the port number.
- Update the XuanYuan_70B_Chat_4bit model endpoint in the ModelEndpoints class to remove the space between the model name and the parentheses.
- Add a new embedding model endpoint called Tao_8k with a token size of 8192.
- Add a new property called ResponseFormat to the ChatRequest class to specify the format of the response content.
- Add a new property called MaxTokens to the ChatRequest class to specify the maximum number of output tokens.

Summary:
- Updated model endpoints in the ERNIE-Bot.SDK ModelEndpoints class.
- Added new properties to the ChatRequest class for specifying response format and maximum output tokens.

馃敡 Fix system message handling

- Fix handling of system messages in ERNIEBotChatCompletion.cs
- Update logic to assign system message content to 'system' variable
- Exclude system messages from the returned chat history

馃摑 Update ERNIEBotChatMessage constructors

- Remove unused constructor in ERNIEBotChatMessage class
- Update existing constructor to include metadata parameter

馃摑 Update ERNIEBotStreamingChatMessage constructors

- Remove unused constructor in ERNIEBotStreamingChatMessage class
- Update existing constructor to include metadata parameter
@github-actions github-actions bot added sdk ERNIE-Bot Sdk sk semantic kernel sample labels Feb 6, 2024
@xbotter xbotter merged commit 689da95 into main Feb 6, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sample sdk ERNIE-Bot Sdk sk semantic kernel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant