1
0
mirror of https://github.com/bitwarden/server synced 2026-01-06 02:23:51 +00:00

PM-6939 - Onyx Integration into freshdesk controller (#5365)

This commit is contained in:
Vijay Oommen
2025-02-06 08:13:17 -06:00
committed by GitHub
parent a12b61cc9e
commit 17f5c97891
10 changed files with 451 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
using System.Text.Json.Serialization;
namespace Bit.Billing.Models;
public class OnyxAnswerWithCitationResponseModel
{
[JsonPropertyName("answer")]
public string Answer { get; set; }
[JsonPropertyName("rephrase")]
public string Rephrase { get; set; }
[JsonPropertyName("citations")]
public List<Citation> Citations { get; set; }
[JsonPropertyName("llm_selected_doc_indices")]
public List<int> LlmSelectedDocIndices { get; set; }
[JsonPropertyName("error_msg")]
public string ErrorMsg { get; set; }
}
public class Citation
{
[JsonPropertyName("citation_num")]
public int CitationNum { get; set; }
[JsonPropertyName("document_id")]
public string DocumentId { get; set; }
}