Hansimov commited on
Commit
84cebc2
1 Parent(s): f8189ac

:zap: [Enhance] ChathubPayload: Customize optionsSets and sliceIds for different styles

Browse files
networks/chathub_request_payload_constructor.py CHANGED
@@ -26,26 +26,47 @@ class ChathubRequestPayloadConstructor:
26
  return "".join(random.choice("0123456789abcdef") for _ in range(length))
27
 
28
  def construct(self):
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  self.request_payload = {
30
  "arguments": [
31
  {
32
  "source": "cib",
33
- "optionsSets": [
34
- "nlu_direct_response_filter",
35
- "deepleo",
36
- "disable_emoji_spoken_text",
37
- "responsible_ai_policy_235",
38
- "enablemm",
39
- "dv3sugg",
40
- "autosave",
41
- "uquopt",
42
- "enelecintl",
43
- "gndeleccf",
44
- "gndlogcf",
45
- "logprobsc",
46
- "fluxprod",
47
- "eredirecturl",
48
- ],
49
  "allowedMessageTypes": [
50
  "ActionRequest",
51
  "Chat",
@@ -65,32 +86,29 @@ class ChathubRequestPayloadConstructor:
65
  "SearchQuery",
66
  ],
67
  "sliceIds": [
68
- "cruisecf",
69
- "adssqovr",
70
- "gbacf",
71
- "bggrey",
72
- "1366cf",
73
- "vnextvoice",
74
- "caccnctat3",
75
- "specedgecf",
76
- "inosanewsmob",
77
- "wrapnoins",
78
- "readaloud",
79
- "autotts",
80
- "styleoffall",
81
- "rwt2",
82
- "dismmaslp",
83
- "1117gndelecs0",
84
- "713logprobsc",
85
- "1118wcpdcl",
86
- "1119backos",
87
- "1103gndlog",
88
- "1107reviewss0",
89
  "fluxnosearch",
90
- "727nrprdrt3",
91
- "codecreator1",
 
 
92
  "kchero50cf",
 
 
93
  "cacmuidarb",
 
 
94
  ],
95
  "verbosity": "verbose",
96
  "scenario": "SERP",
 
26
  return "".join(random.choice("0123456789abcdef") for _ in range(length))
27
 
28
  def construct(self):
29
+ options_sets_body = [
30
+ "nlu_direct_response_filter",
31
+ "deepleo",
32
+ "disable_emoji_spoken_text",
33
+ "responsible_ai_policy_235",
34
+ "enablemm",
35
+ "dv3sugg",
36
+ "autosave",
37
+ "iyxapbing",
38
+ "iycapbing",
39
+ "rai289",
40
+ "enflst",
41
+ "enpcktrk",
42
+ "rcaldictans",
43
+ "rcaltimeans",
44
+ "eredirecturl",
45
+ ]
46
+ styles_options_sets = {
47
+ "precise": options_sets_body
48
+ + [
49
+ "h3precise",
50
+ "clgalileo",
51
+ "gencontentv3",
52
+ ],
53
+ "balanced": options_sets_body
54
+ + [
55
+ "galileo",
56
+ "saharagenconv5",
57
+ ],
58
+ "creative": options_sets_body
59
+ + [
60
+ "h3imaginative",
61
+ "clgalileo",
62
+ "gencontentv3",
63
+ ],
64
+ }
65
  self.request_payload = {
66
  "arguments": [
67
  {
68
  "source": "cib",
69
+ "optionsSets": styles_options_sets[self.conversation_style],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  "allowedMessageTypes": [
71
  "ActionRequest",
72
  "Chat",
 
86
  "SearchQuery",
87
  ],
88
  "sliceIds": [
89
+ "techpillscf",
90
+ "gbaa",
91
+ "gba",
92
+ "gbapa",
93
+ "codecreator",
94
+ "dlidcf",
95
+ "specedge",
96
+ "preall15",
97
+ "suppsm240-t",
98
+ "translref",
99
+ "ardsw_1_9_9",
100
+ "fluxnosearchc",
 
 
 
 
 
 
 
 
 
101
  "fluxnosearch",
102
+ "1115rai289",
103
+ "1119backoss0",
104
+ "124multi2t",
105
+ "1129gpt4ts0",
106
  "kchero50cf",
107
+ "cacfastapis",
108
+ "cacdupereccf",
109
  "cacmuidarb",
110
+ "cacfrwebt2cf",
111
+ "sswebtop2cf",
112
  ],
113
  "verbosity": "verbose",
114
  "scenario": "SERP",