feat: add sparkdesk config

This commit is contained in:
geffzhang 2024-03-18 20:54:00 +08:00
parent dec1fba4b5
commit 1f5ec60207
2 changed files with 22 additions and 3 deletions

View file

@ -204,7 +204,7 @@ public class ChatCompletionProvider : IChatCompletion
{
if (message.Role == "function")
{
messages.Add(ChatMessage.FromUser($"function call result: {message.Content}"));
//messages.Add(ChatMessage.FromUser($"function call result: {message.Content}"));
}
else if (message.Role == "user")
{

View file

@ -45,7 +45,7 @@
"Name": "gpt-35-turbo",
"Version": "1106",
"ApiKey": "",
"Endpoint": "https://gpt-35-turbo.openai.azure.com/",
"Endpoint": "https://gpt-35-turbo-instruct.openai.azure.com/",
"Type": "chat",
"PromptCost": 0.0015,
"CompletionCost": 0.002
@ -82,6 +82,17 @@
"Type": "text"
}
]
},
{
"Provider": "sparkdesk",
"Models": [
{
"Name": "gpt-35-turbo",
"Type": "chat",
"PromptCost": 0.0015,
"CompletionCost": 0.002
}
]
}
],
@ -197,6 +208,13 @@
"Pdf2TextConverter": "PigPdf2TextConverter"
},
"SparkDesk": {
"AppId": "",
"ApiKey": "",
"ApiSecret": "",
"ModelVersion": "V3_5"
},
"PluginLoader": {
"Assemblies": [
"BotSharp.Core",
@ -214,7 +232,8 @@
"BotSharp.Plugin.WeChat",
"BotSharp.Plugin.PizzaBot",
"BotSharp.Plugin.WebDriver",
"BotSharp.Plugin.LLamaSharp"
"BotSharp.Plugin.LLamaSharp",
"BotSharp.Plugin.SparkDesk"
]
}
}