fix: do not assume a default model in DTO

This commit is contained in:
2025-07-29 13:07:04 +02:00
parent 870fcf7573
commit 56bd82f6a2
2 changed files with 3 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ public class GeneralUseHelpers(ApplicationDbContext db, IConfiguration appsettin
{
string _model = model ?? _appsettings.GetSection("LlmIntegration")["DefaultModel"] ?? "deepclaude";
float _temp = temp ?? 0.6f; // sane default
float _temp = temp ?? 0.8f; // sane default
string _included_sample = string.Empty;
string _prompt = prompt ?? _appsettings.GetSection("LlmIntegration")["DefaultPrompt"] ??
"Cześć, czy jesteś w stanie wymyślić i stworzyć jeden oryginalny cytat? " +

View File

@@ -2,8 +2,8 @@ namespace QuotifyBE.DTOs;
public record class AskLLMInDTO
{
public string? CustomPrompt { get; set; }
public string? Model { get; set; } = "deepclaude";
public string? CustomPrompt { get; set; } = null;
public string? Model { get; set; } = null;
public float? Temperature { get; set; } = 0.8f;
public int? CategoryId { get; set; } = null;
public bool? UseSampleQuote { get; set; } = false;