-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Baidu Request Dto:add system property. - SSE frontier js function update,bug fix. - Update Aeex.LLMService.Shared,Aeex.LLMService.Baidu.Wenxin package version.
- Loading branch information
1 parent
64c7426
commit 2066fba
Showing
11 changed files
with
93 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/LLMService.Baidu.Wenxinworkshop/Models/BaiduChatRequestDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using LLMService.Shared.Models; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Text.Json.Serialization; | ||
using System.Threading.Tasks; | ||
|
||
namespace LLMService.Baidu.Wenxinworkshop.Models | ||
{ | ||
/// <summary> | ||
/// 百度用户请求 | ||
/// </summary> | ||
/// <seealso cref="LLMService.Shared.Models.ChatRequest" /> | ||
public class BaiduChatRequestDto: ChatRequest | ||
{ | ||
/// <summary> | ||
/// 模型人设,主要用于人设设定,例如,你是xxx公司制作的AI助手,说明: | ||
/// (1)长度限制,最后一个message的content长度(即此轮对话的问题)、functions和system字段总内容不能超过20000个字符,且不能超过5000 tokens | ||
/// (2)如果同时使用system和functions,可能暂无法保证使用效果,持续进行优化 | ||
/// </summary> | ||
/// <value> | ||
/// The system. | ||
/// </value> | ||
[JsonPropertyName("system")] | ||
public string System { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.