Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
TranslationPluginResponse.c
Go to the documentation of this file.
1#ifdef WORKBENCH
2class TranslationPluginResponse : JsonApiStruct
3{
4 ref array<ref TranslationPluginResult> results;
5 ref TranslationPluginResponseMeta meta;
6
7 //------------------------------------------------------------------------------------------------
8 void TranslationPluginResponse()
9 {
10 RegAll();
11 }
12}
13
14class TranslationPluginResult : JsonApiStruct
15{
16 string id;
17 ref TranslationPluginResultHolder translations;
18
19 //------------------------------------------------------------------------------------------------
20 void TranslationPluginResult()
21 {
22 RegV("id");
23 if (translations)
24 RegV("translations");
25 }
26}
27
28[BaseContainerProps()] // needed to Containerise in TranslationPlugin.GetTranslationFromLocale
29class TranslationPluginResultHolder : JsonApiStruct
30{
31 [Attribute()] string cs_cz;
32 [Attribute()] string de_de;
33 [Attribute()] string en_us;
34 [Attribute()] string es_es;
35 [Attribute()] string fr_fr;
36 [Attribute()] string it_it;
37 [Attribute()] string ja_jp;
38 [Attribute()] string ko_kr;
39 [Attribute()] string pl_pl;
40 [Attribute()] string pt_br;
41 [Attribute()] string ru_ru;
42 [Attribute()] string uk_ua;
43 [Attribute()] string zh_cn;
44
45 //------------------------------------------------------------------------------------------------
46 void TranslationPluginResultHolder()
47 {
48 RegAll();
49 }
50}
51
52class TranslationPluginResponseMeta : JsonApiStruct
53{
54 string system_prompt;
55 string user_prompt;
56 string model;
57 ref TranslationPluginResponseMetaUsage usage;
58 float total_cost;
59 string currency;
60
61 //------------------------------------------------------------------------------------------------
62 void TranslationPluginResponseMeta()
63 {
64 RegAll();
65 }
66}
67
68class TranslationPluginResponseMetaUsage : JsonApiStruct
69{
70 int prompt_tokens;
71 int completion_tokens;
72 int total_tokens;
73
74 //------------------------------------------------------------------------------------------------
75 void TranslationPluginResponseMetaUsage()
76 {
77 RegAll();
78 }
79}
80#endif // WORKBENCH
AddonBuildInfoTool id
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
base classes for filtering in server browser
SCR_FieldOfViewSettings Attribute