dramaling-vocab-learning/backend/DramaLing.Api/appsettings.json

63 lines
1.6 KiB
JSON

{
"Logging": {
"LogLevel": {
"Default": "Debug",
"Microsoft.AspNetCore": "Information",
"Microsoft.EntityFrameworkCore": "Information",
"DramaLing.Api": "Debug",
"System": "Information",
"Microsoft": "Information"
},
"Console": {
"IncludeScopes": true,
"LogLevel": {
"Default": "Debug"
}
}
},
"AllowedHosts": "*",
"Frontend": {
"Urls": ["http://localhost:3000", "http://localhost:3001"]
},
"Gemini": {
"ApiKey": "",
"TimeoutSeconds": 30,
"MaxRetries": 3,
"MaxOutputTokens": 2000,
"Temperature": 0.7,
"Model": "gemini-1.5-flash",
"BaseUrl": "https://generativelanguage.googleapis.com"
},
"Replicate": {
"ApiKey": "",
"BaseUrl": "https://api.replicate.com/v1",
"TimeoutSeconds": 300,
"DefaultModel": "ideogram-v2a-turbo",
"Models": {
"ideogram-v2a-turbo": {
"Version": "c169dbd9a03b7bd35c3b05aa91e83bc4ad23ee2a4b8f93f2b6cbdda4f466de4a",
"CostPerGeneration": 0.025,
"DefaultWidth": 512,
"DefaultHeight": 512,
"StyleType": "General",
"AspectRatio": "ASPECT_1_1",
"Model": "V_2_TURBO"
},
"flux-1-dev": {
"Version": "dev",
"CostPerGeneration": 0.05,
"DefaultWidth": 512,
"DefaultHeight": 512
}
}
},
"ImageStorage": {
"Provider": "Local",
"Local": {
"BasePath": "wwwroot/images/examples",
"BaseUrl": "http://localhost:5008/images/examples",
"MaxFileSize": 10485760,
"AllowedFormats": ["png", "jpg", "jpeg", "webp"]
}
}
}