- Added functionality to update the default LLM provider for users via a new endpoint in UserController. - Introduced LlmProvider enum to manage available LLM options: Auto, Gemini, OpenAI, and Claude. - Updated User and UserEntity models to include DefaultLlmProvider property. - Enhanced database context and migrations to support the new LLM provider configuration. - Integrated LLM services into the application bootstrap for dependency injection. - Updated TypeScript API client to include methods for managing LLM providers and chat requests.
107 lines
2.7 KiB
JSON
107 lines
2.7 KiB
JSON
{
|
|
"Authentication": {
|
|
"Schemes": {
|
|
"Bearer": {
|
|
"ValidAudiences": [
|
|
"http://localhost:3000/"
|
|
],
|
|
"ValidIssuer": "Managing"
|
|
}
|
|
}
|
|
},
|
|
"InfluxDb": {
|
|
"Organization": "managing-org"
|
|
},
|
|
"Web3Proxy": {
|
|
"BaseUrl": "http://localhost:4111",
|
|
"MaxRetryAttempts": 2,
|
|
"RetryDelayMs": 1500,
|
|
"TimeoutSeconds": 30
|
|
},
|
|
"Kaigen": {
|
|
"BaseUrl": "https://kaigen-back-kaigen-stage.up.railway.app",
|
|
"DebitEndpoint": "/api/credits/debit",
|
|
"RefundEndpoint": "/api/credits/refund"
|
|
},
|
|
"Flagsmith": {
|
|
"ApiUrl": "https://flag.kaigen.ai/api/v1/"
|
|
},
|
|
"Llm": {
|
|
"Gemini": {
|
|
"DefaultModel": "gemini-2.0-flash"
|
|
},
|
|
"OpenAI": {
|
|
"DefaultModel": "gpt-4o"
|
|
},
|
|
"Claude": {
|
|
"DefaultModel": "claude-haiku-4-5-20251001"
|
|
}
|
|
},
|
|
"N8n": {
|
|
},
|
|
"Sentry": {
|
|
"MinimumEventLevel": "Error",
|
|
"SendDefaultPii": true,
|
|
"MaxBreadcrumbs": 50,
|
|
"SampleRate": 1.0,
|
|
"TracesSampleRate": 0.2,
|
|
"Debug": false
|
|
},
|
|
"Serilog": {
|
|
"MinimumLevel": {
|
|
"Default": "Information",
|
|
"Override": {
|
|
"Microsoft": "Information",
|
|
"System": "Warning"
|
|
}
|
|
}
|
|
},
|
|
"ElasticConfiguration": {
|
|
"Uri": "http://elasticsearch:9200/"
|
|
},
|
|
"Discord": {
|
|
"BotActivity": "with trading strategies",
|
|
"HandleUserAction": true,
|
|
"SignalChannelId": 966080506473099314,
|
|
"TradesChannelId": 998374177763491851,
|
|
"TroublesChannelId": 1015761955321040917,
|
|
"CopyTradingChannelId": 1132022887012909126,
|
|
"RequestsChannelId": 1018589494968078356,
|
|
"FundingRateChannelId": 1263566138709774336,
|
|
"DebugChannelId": 1431289070297813044,
|
|
"ButtonExpirationMinutes": 10
|
|
},
|
|
"RunOrleansGrains": true,
|
|
"DeploymentMode": false,
|
|
"WorkerPricesFifteenMinutes": false,
|
|
"WorkerPricesOneHour": false,
|
|
"WorkerPricesFourHours": false,
|
|
"WorkerPricesOneDay": false,
|
|
"WorkerPricesFiveMinutes": false,
|
|
"WorkerSpotlight": false,
|
|
"WorkerTraderWatcher": false,
|
|
"WorkerLeaderboard": false,
|
|
"WorkerFundingRatesWatcher": false,
|
|
"WorkerGeneticAlgorithm": false,
|
|
"WorkerBundleBacktest": false,
|
|
"WorkerBundleBacktestHealthCheck": false,
|
|
"WorkerBalancesTracking": false,
|
|
"WorkerNotifyBundleBacktest": false,
|
|
"SqlMonitoring": {
|
|
"Enabled": true,
|
|
"LoggingEnabled": true,
|
|
"SentryEnabled": true,
|
|
"LoopDetectionEnabled": true,
|
|
"PerformanceMonitoringEnabled": true,
|
|
"LoopDetectionWindowSeconds": 60,
|
|
"MaxQueryExecutionsPerWindow": 500,
|
|
"MaxMethodExecutionsPerWindow": 250,
|
|
"LongRunningQueryThresholdMs": 1000,
|
|
"SentryAlertThreshold": 5,
|
|
"SlowQueryThresholdMs": 1500,
|
|
"LogSlowQueriesOnly": true,
|
|
"LogErrorsOnly": false,
|
|
"DataRetentionMinutes": 300
|
|
},
|
|
"EnableSwagger": false
|
|
} |