mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-18 01:20:07 +01:00
fix: do not assume a default model in DTO
This commit is contained in:
@@ -139,7 +139,7 @@ public class GeneralUseHelpers(ApplicationDbContext db, IConfiguration appsettin
|
|||||||
{
|
{
|
||||||
|
|
||||||
string _model = model ?? _appsettings.GetSection("LlmIntegration")["DefaultModel"] ?? "deepclaude";
|
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 _included_sample = string.Empty;
|
||||||
string _prompt = prompt ?? _appsettings.GetSection("LlmIntegration")["DefaultPrompt"] ??
|
string _prompt = prompt ?? _appsettings.GetSection("LlmIntegration")["DefaultPrompt"] ??
|
||||||
"Cześć, czy jesteś w stanie wymyślić i stworzyć jeden oryginalny cytat? " +
|
"Cześć, czy jesteś w stanie wymyślić i stworzyć jeden oryginalny cytat? " +
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ namespace QuotifyBE.DTOs;
|
|||||||
|
|
||||||
public record class AskLLMInDTO
|
public record class AskLLMInDTO
|
||||||
{
|
{
|
||||||
public string? CustomPrompt { get; set; }
|
public string? CustomPrompt { get; set; } = null;
|
||||||
public string? Model { get; set; } = "deepclaude";
|
public string? Model { get; set; } = null;
|
||||||
public float? Temperature { get; set; } = 0.8f;
|
public float? Temperature { get; set; } = 0.8f;
|
||||||
public int? CategoryId { get; set; } = null;
|
public int? CategoryId { get; set; } = null;
|
||||||
public bool? UseSampleQuote { get; set; } = false;
|
public bool? UseSampleQuote { get; set; } = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user