mirror of
https://github.com/bitwarden/server.git
synced 2026-02-06 17:13:10 +08:00
31 lines
738 B
C#
31 lines
738 B
C#
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; }
|
|
}
|