feat: add sparkdesk config
This commit is contained in:
parent
dec1fba4b5
commit
1f5ec60207
|
|
@ -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")
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue