159 lines
3.3 KiB
JSON
159 lines
3.3 KiB
JSON
{
|
|
"Logging": {
|
|
"LogLevel": {
|
|
"Default": "Information",
|
|
"Microsoft.AspNetCore": "Warning"
|
|
}
|
|
},
|
|
"AllowedHosts": "*",
|
|
|
|
"Jwt": {
|
|
"Issuer": "botsharp",
|
|
"Audience": "botsharp",
|
|
"Key": "31ba6052aa6f4569901facc3a41fcb4a"
|
|
},
|
|
|
|
"LlmProviders": [
|
|
{
|
|
"Provider": "azure-openai",
|
|
"Models": [
|
|
{
|
|
"Name": "gpt-35-turbo",
|
|
"ApiKey": "",
|
|
"Endpoint": "https://ai4c-demo.openai.azure.com/",
|
|
"Type": "chat",
|
|
"PromptCost": 0.0015,
|
|
"CompletionCost": 0.002
|
|
},
|
|
{
|
|
"Name": "gpt-35-turbo",
|
|
"ApiKey": "",
|
|
"Endpoint": "https://ai4c-demo.openai.azure.com/",
|
|
"Type": "text",
|
|
"PromptCost": 0.0015,
|
|
"CompletionCost": 0.002
|
|
}
|
|
]
|
|
}
|
|
],
|
|
|
|
"Router": {
|
|
},
|
|
|
|
"Evaluator": {
|
|
"AgentId": "dfd9b46d-d00c-40af-8a75-3fbdc2b89869"
|
|
},
|
|
|
|
"Agent": {
|
|
"DataDir": "agents",
|
|
"TemplateFormat": "liquid",
|
|
"HostAgentId": "01e2fc5c-2c89-4ec7-8470-7688608b496c",
|
|
"LlmConfig": {
|
|
"Provider": "azure-openai",
|
|
"Model": "gpt-35-turbo"
|
|
}
|
|
},
|
|
|
|
"Conversation": {
|
|
"DataDir": "conversations",
|
|
"ShowVerboseLog": false,
|
|
"EnableLlmCompletionLog": false,
|
|
"EnableExecutionLog": true
|
|
},
|
|
|
|
"LlamaSharp": {
|
|
"Interactive": true,
|
|
"ModelDir": "C:/Users/haipi/Downloads",
|
|
"DefaultModel": "llama-2-7b-chat.Q8_0.gguf",
|
|
"MaxContextLength": 1024,
|
|
"NumberOfGpuLayer": 20
|
|
},
|
|
|
|
"AzureOpenAi": {
|
|
},
|
|
|
|
"GoogleAi": {
|
|
"PaLM": {
|
|
"Endpoint": "https://generativelanguage.googleapis.com",
|
|
"ApiKey": ""
|
|
}
|
|
},
|
|
|
|
"HuggingFace": {
|
|
"Endpoint": "https://api-inference.huggingface.co",
|
|
"Model": "tiiuae/falcon-180B-chat",
|
|
"Token": ""
|
|
},
|
|
|
|
"MetaAi": {
|
|
"fastText": {
|
|
"ModelPath": "dbpedia.ftz"
|
|
}
|
|
},
|
|
|
|
"RoutingSpeeder": {
|
|
},
|
|
|
|
"MetaMessenger": {
|
|
"Endpoint": "https://graph.facebook.com",
|
|
"ApiVersion": "v17.0",
|
|
"PageId": "",
|
|
"PageAccessToken": ""
|
|
},
|
|
|
|
"Twilio": {
|
|
"PhoneNumber": "+1",
|
|
"AccountSID": "",
|
|
"AuthToken": "",
|
|
"CallbackHost": "https://",
|
|
"AgentId": "01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a"
|
|
},
|
|
|
|
"Database": {
|
|
"Default": "FileRepository",
|
|
"TablePrefix": "BotSharp",
|
|
"BotSharpMongoDb": "",
|
|
"FileRepository": "data",
|
|
"Assemblies": [ "BotSharp.Core" ]
|
|
},
|
|
|
|
"Qdrant": {
|
|
"Url": "",
|
|
"ApiKey": ""
|
|
},
|
|
|
|
"WeChat": {
|
|
"AgentId": "437bed34-1169-4833-95ce-c24b8b56154a",
|
|
"Token": "#{Token}#",
|
|
"EncodingAESKey": "#{EncodingAESKey}#",
|
|
"WeixinAppId": "#{WeixinAppId}#",
|
|
"WeixinAppSecret": "#{WeixinAppSecret}#"
|
|
},
|
|
|
|
"KnowledgeBase": {
|
|
"VectorDb": "MemVectorDatabase",
|
|
"TextEmbedding": "fastTextEmbeddingProvider",
|
|
"TextCompletion": "AzureOpenAI.Providers.TextCompletionProvider",
|
|
"Pdf2TextConverter": "PigPdf2TextConverter"
|
|
},
|
|
|
|
"PluginLoader": {
|
|
"Assemblies": [
|
|
"BotSharp.Plugin.MongoStorage",
|
|
"BotSharp.Core",
|
|
"BotSharp.Plugin.AzureOpenAI",
|
|
"BotSharp.Plugin.GoogleAI",
|
|
"BotSharp.Plugin.MetaAI",
|
|
"BotSharp.Plugin.MetaMessenger",
|
|
"BotSharp.Plugin.HuggingFace",
|
|
"BotSharp.Plugin.KnowledgeBase",
|
|
"BotSharp.Plugin.Qdrant",
|
|
"BotSharp.Plugin.ChatHub",
|
|
"BotSharp.Plugin.WeChat",
|
|
"BotSharp.Plugin.PizzaBot",
|
|
"BotSharp.Plugin.WebDriver",
|
|
"BotSharp.Plugin.LLamaSharp"
|
|
]
|
|
}
|
|
}
|