{ "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } }, "AllowedHosts": "*", "AllowedOrigins": [ "http://localhost:5015", "http://0.0.0.0:5015", "https://botsharp.scisharpstack.org", "https://chat.scisharpstack.org" ], "Jwt": { "Issuer": "botsharp", "Audience": "botsharp", "Key": "31ba6052aa6f4569901facc3a41fcb4adfd9b46dd00c40af8a753fbdc2b89869" }, "OAuth": { "GitHub": { "ClientId": "", "ClientSecret": "" }, "Google": { "ClientId": "", "ClientSecret": "" }, "Keycloak": { "BaseAddress": "", "Realm": "", "ClientId": "", "ClientSecret": "", "Version": 22 }, "Weixin": { "AppId": "", "AppSecret": "" } }, "LlmProviders": [ { "Provider": "azure-openai", "Models": [ { "Id": "gpt-3.5-turbo", "Name": "gpt-35-turbo", "Version": "1106", "ApiKey": "", "Endpoint": "https://gpt-35-turbo-instruct.openai.azure.com/" }, { "Name": "gpt-35-turbo-instruct", "Version": "0914", "ApiKey": "", "Endpoint": "https://gpt-35-turbo-instruct.openai.azure.com/", "Type": "text", "Cost": { "TextInputCost": 0.0015, "CachedTextInputCost": 0, "AudioInputCost": 0, "CachedAudioInputCost": 0, "TextOutputCost": 0.002, "AudioOutputCost": 0 } } ] }, { "Provider": "llama-sharp", "Models": [ { "Name": "llama-2-7b-guanaco-qlora.Q2_K.gguf", "Type": "chat" } ] }, { "Provider": "huggingface", "Models": [ { "Name": "mistralai/Mistral-7B-v0.1", "Type": "text" }, { "Name": "TinyLlama/TinyLlama-1.1B-Chat-v1.0", "Type": "text" } ] }, { "Provider": "sparkdesk", "Models": [ { "Name": "gpt-35-turbo", "Type": "chat", "Cost": { "TextInputCost": 0.0015, "CachedTextInputCost": 0, "AudioInputCost": 0, "CachedAudioInputCost": 0, "TextOutputCost": 0.002, "AudioOutputCost": 0 } } ] }, { "Provider": "metaglm", "Models": [ { "Name": "chatglm3_6b", "Type": "chat", "Cost": { "TextInputCost": 0.0015, "CachedTextInputCost": 0, "AudioInputCost": 0, "CachedAudioInputCost": 0, "TextOutputCost": 0.002, "AudioOutputCost": 0 } } ] }, { "Provider": "openai", "Models": [ { "Id": "gpt-4", "Name": "gpt-4o-mini", "Version": "2024-07-18", "ApiKey": "", "Type": "chat", "MultiModal": true, "Cost": { "TextInputCost": 0.00015, "CachedTextInputCost": 0, "AudioInputCost": 0, "CachedAudioInputCost": 0, "TextOutputCost": 0.0006, "AudioOutputCost": 0 } }, { "Id": "gpt-4", "Name": "gpt-4o-2024-11-20", "Version": "2024-11-20", "ApiKey": "", "Type": "chat", "MultiModal": true, "Cost": { "TextInputCost": 0.0025, "CachedTextInputCost": 0, "AudioInputCost": 0, "CachedAudioInputCost": 0, "TextOutputCost": 0.01, "AudioOutputCost": 0 } }, { "Id": "gpt-4", "Name": "gpt-4o-mini-realtime-preview-2024-12-17", "Version": "2024-12-17", "ApiKey": "", "Type": "chat", "MultiModal": true, "RealTime": true, "Cost": { "TextInputCost": 0.0025, "CachedTextInputCost": 0, "AudioInputCost": 0, "CachedAudioInputCost": 0, "TextOutputCost": 0.01, "AudioOutputCost": 0 } }, { "Id": "text-embedding-3", "Name": "text-embedding-3-small", "Version": "3-small", "ApiKey": "", "Type": "embedding", "Embedding": { "Dimension": 1536 } } ] }, { "Provider": "deepseek-ai", "Models": [ { "Name": "deepseek-chat", "ApiKey": "", "Endpoint": "https://api.deepseek.com/v1/", "Type": "chat", "Cost": { "TextInputCost": 0.0015, "CachedTextInputCost": 0, "AudioInputCost": 0, "CachedAudioInputCost": 0, "TextOutputCost": 0.002, "AudioOutputCost": 0 } } ] }, { "Provider": "google-ai", "Models": [ { "Name": "gemini-2.0-flash", "ApiKey": "", "Type": "chat", "MultiModal": true, "Cost": { "TextInputCost": 0.0015, "CachedTextInputCost": 0, "AudioInputCost": 0, "CachedAudioInputCost": 0, "TextOutputCost": 0.002, "AudioOutputCost": 0 } }, { "Name": "gemini-2.0-flash-exp", "ApiKey": "", "Type": "realtime", "MultiModal": true, "Cost": { "TextInputCost": 0.0015, "CachedTextInputCost": 0, "AudioInputCost": 0, "CachedAudioInputCost": 0, "TextOutputCost": 0.002, "AudioOutputCost": 0 } } ] } ], "Router": { }, "Evaluator": { "AgentId": "dfd9b46d-d00c-40af-8a75-3fbdc2b89869" }, "Agent": { "DataDir": "agents", "TemplateFormat": "liquid", "HostAgentId": "01e2fc5c-2c89-4ec7-8470-7688608b496c", "EnableTranslator": false, "LlmConfig": { "Provider": "openai", "Model": "gpt-4.1-nano" } }, "MCP": { "Enabled": false, "McpClientOptions": { "ClientInfo": { "Name": "SimpleToolsBotsharp", "Version": "1.0.0" } }, "McpServerConfigs": [ //{ // "Id": "PizzaServer", // "Name": "PizzaServer", // "SseConfig": { // "Endpoint": "http://localhost:58905/sse" // } //} ] }, "Conversation": { "DataDir": "conversations", "ShowVerboseLog": false, "EnableLlmCompletionLog": false, "EnableExecutionLog": true, "EnableContentLog": true, "EnableStateLog": true, "EnableTranslationMemory": false, "CleanSetting": { "Enable": true, "BatchSize": 50, "MessageLimit": 2, "BufferHours": 12, "ExcludeAgentIds": [] }, "RateLimit": { "MaxConversationPerDay": 100, "MaxInputLengthPerRequest": 256, "MinTimeSecondsBetweenMessages": 2 }, "FileSelect": { "LlmProvider": "openai", "LlmModel": "gpt-5-mini", "MaxOutputTokens": 8192, "ReasoningEffortLevel": "low", "MessageLimit": 50 } }, "SideCar": { "Conversation": { "Provider": "botsharp" } }, "WebBrowsing": { "Driver": "Playwright" }, "SqlDriver": { "MySqlConnectionString": "", "SqlServerConnectionString": "", "SqlLiteConnectionString": "" }, "Statistics": { "Enabled": false }, "Crontab": { "Watcher": { "Enabled": false }, "EventSubscriber": { "Enabled": false } }, "Instruction": { "Logging": { "Enabled": true, "ExcludedAgentIds": [] } }, "ChatHub": { "EventDispatchBy": "group" }, "SharpCache": { "Enabled": true, "CacheType": 1, "Prefix": "botsharp" }, "LlamaSharp": { "Interactive": true, "ModelDir": "C:/Users/haipi/Downloads", "DefaultModel": "llama-2-7b-chat.Q8_0.gguf", "MaxContextLength": 1024, "NumberOfGpuLayer": 20 }, "AzureOpenAi": { }, "AnthropicAi": { "Claude": { } }, "GoogleAi": { "PaLM": { "Endpoint": "https://generativelanguage.googleapis.com", "ApiKey": "" }, "Gemini": { "ApiKey": "", "UseGoogleSearch": false, "UseGrounding": false } }, "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": "", "Redis": "botsharp.redis.cache.windows.net:6380,password=,ssl=True,abortConnect=False", "FileRepository": "data", "Assemblies": [ "BotSharp.Core" ] }, "FileCore": { "Storage": "LocalFileStorage", "ImageConverter": { "Provider": "" } }, "FileHandler": { "Image": { "Reading": { "LlmProvider": "openai", "LlmModel": "gpt-5-mini", "ImageDetailLevel": "auto" }, "Generation": { "LlmProvider": "openai", "LlmModel": "gpt-image-1" }, "Edit": { "LlmProvider": "openai", "LlmModel": "gpt-image-1", "ImageConverter": { "Provider": "file-handler" } } }, "Pdf": { "Reading": { "LlmProvider": "google-ai", "LlmModel": "gemini-2.0-flash", "ConvertToImage": false, "ImageDetailLevel": "auto", "ImageConverter": { "Provider": null } } } }, "AudioHandler": { "Audio": { "Reading": { "LlmProvider": "openai", "LlmModel": "gpt-4o-mini-transcribe" } } }, "ExcelHandler": { "DbProvider": "mysql" }, "HttpHandler": { "BaseAddress": "", "Origin": "" }, "ChartHandler": { "ChartPlot": { "LlmProvider": "openai", "LlmModel": "gpt-5", "MaxOutputTokens": 8192, "ReasoningEffortLevel": "minimal" } }, "TencentCos": { "AppId": "", "SecretId": "", "SecretKey": "", "BucketName": "", "Region": "" }, "Qdrant": { "Url": "", "ApiKey": "" }, "Graph": { "BaseUrl": "", "SearchPath": "" }, "WeChat": { "AgentId": "437bed34-1169-4833-95ce-c24b8b56154a", "Token": "#{Token}#", "EncodingAESKey": "#{EncodingAESKey}#", "WeixinAppId": "#{WeixinAppId}#", "WeixinAppSecret": "#{WeixinAppSecret}#" }, "KnowledgeBase": { "VectorDb": { "Provider": "Qdrant" }, "GraphDb": { "Provider": "Remote" }, "Default": { "CollectionName": "BotSharp", "TextEmbedding": { "Provider": "openai", "Model": "text-embedding-3-small", "Dimension": 1536 } } }, "SparkDesk": { "AppId": "", "ApiKey": "", "ApiSecret": "", "ModelVersion": "V3_5" }, "MetaGLM": { "ApiKey": "6b6c8b3fca3e5da21d633e350980744d.938gruOqrK4BDqW8", "BaseAddress": "http://localhost:8100/v1/", "ModelId": "chatglm3_6b", "Temperature": 0.7, "TopP": 0.7 }, "GoogleApi": { "ApiKey": "", "Map": { "Endpoint": "https://maps.googleapis.com/maps/api/geocode/json", "Components": "country=US|country=CA" }, "Youtube": { "Endpoint": "https://www.googleapis.com/youtube/v3/search", "RegionCode": "US", "Part": "id,snippet", "Channels": [] } }, "Interpreter": { "Python": { "PythonDLL": "C:/Users/xxx/AppData/Local/Programs/Python/Python311/python311.dll" } }, "PluginLoader": { "Assemblies": [ "BotSharp.Core", "BotSharp.Core.SideCar", "BotSharp.Core.Crontab", "BotSharp.Core.Realtime", "BotSharp.Logger", "BotSharp.Plugin.MongoStorage", "BotSharp.Plugin.Dashboard", "BotSharp.Plugin.OpenAI", "BotSharp.Plugin.AzureOpenAI", "BotSharp.Plugin.AnthropicAI", "BotSharp.Plugin.GoogleAI", "BotSharp.Plugin.MetaAI", "BotSharp.Plugin.DeepSeekAI", "BotSharp.Plugin.MetaMessenger", "BotSharp.Plugin.HuggingFace", "BotSharp.Plugin.KnowledgeBase", "BotSharp.Plugin.Planner", "BotSharp.Plugin.Graph", "BotSharp.Plugin.Qdrant", "BotSharp.Plugin.ChatHub", "BotSharp.Plugin.WeChat", "BotSharp.Plugin.PizzaBot", "BotSharp.Plugin.WebDriver", "BotSharp.Plugin.LLamaSharp", "BotSharp.Plugin.SparkDesk", "BotSharp.Plugin.MetaGLM", "BotSharp.Plugin.HttpHandler", "BotSharp.Plugin.FileHandler", "BotSharp.Plugin.EmailHandler", "BotSharp.Plugin.AudioHandler", "BotSharp.Plugin.ChartHandler", "BotSharp.Plugin.AudioHandler", "BotSharp.Plugin.ExcelHandler", "BotSharp.Plugin.SqlDriver", "BotSharp.Plugin.TencentCos" ] } }