4using System.Collections.Generic;
10 public struct ChatRequest
14 public float temperature;
21 public List<string> stop;
23 public float typical_p;
24 public float repeat_penalty;
25 public int repeat_last_n;
26 public bool penalize_nl;
27 public float presence_penalty;
28 public float frequency_penalty;
29 public string penalty_prompt;
31 public float mirostat_tau;
32 public float mirostat_eta;
33 public string grammar;
35 public bool ignore_eos;
36 public Dictionary<int, string> logit_bias;
38 public bool cache_prompt;
39 public List<ChatMessage> messages;
43 public struct SystemPromptRequest
46 public string system_prompt;
51 public struct ChatResult
54 public string content;
56 public string generation_settings;
59 public bool stopped_eos;
60 public bool stopped_limit;
61 public bool stopped_word;
62 public string stopping_word;
63 public string timings;
64 public int tokens_cached;
65 public int tokens_evaluated;
66 public bool truncated;
67 public bool cache_prompt;
68 public bool system_prompt;
72 public struct MultiChatResult
74 public List<ChatResult> data;
78 public struct ChatMessage
81 public string content;
85 public struct TokenizeRequest
87 public string content;
91 public struct TokenizeResult
93 public List<int> tokens;
97 public struct EmbeddingsResult
99 public List<float> embedding;
103 public struct LoraWeightRequest
110 public struct LoraWeightRequestList
112 public List<LoraWeightRequest> loraWeights;
116 public struct LoraWeightResult
124 public struct LoraWeightResultList
126 public List<LoraWeightResult> loraWeights;
130 public struct TemplateResult
132 public string template;
136 public struct SlotRequest
139 public string action;
140 public string filepath;
144 public struct SlotResult
147 public string filename;