Skip to content

Commit

Permalink
add json annotation to chatspanrequest
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Dec 24, 2024
1 parent 989c9fc commit db0e33e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/BE/Controllers/Chats/Chats/Dtos/ChatRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ public DecryptedChatRequest Decrypt(IUrlEncryptionService idEncryption)

public record ChatSpanRequest
{
[JsonPropertyName("id")]
public required byte Id { get; init; }

[JsonPropertyName("systemPrompt")]
public string? SystemPrompt { get; init; }

public InternalChatSpanRequest ToInternalChatSpanRequest()
Expand Down

0 comments on commit db0e33e

Please sign in to comment.