@@ -19,14 +19,12 @@ type Sydney struct {
19
19
createConversationURL string
20
20
bypassServer string
21
21
22
- optionsSet []string
23
- sliceIDs []string
24
- locationHints map [string ][]LocationHint
25
- allowedMessageTypes []string
26
- headers func () map [string ]string
27
- headersCreateConversation func () map [string ]string
28
- headersCreateImage func () map [string ]string
29
- cookies map [string ]string
22
+ optionsSet []string
23
+ sliceIDs []string
24
+ locationHints map [string ][]LocationHint
25
+ allowedMessageTypes []string
26
+ headers func () map [string ]string
27
+ cookies map [string ]string
30
28
}
31
29
32
30
func NewSydney (options Options ) * Sydney {
@@ -165,42 +163,6 @@ func NewSydney(options Options) *Sydney {
165
163
"Cookie" : util .FormatCookieString (cookies ),
166
164
}
167
165
},
168
- headersCreateConversation : func () map [string ]string {
169
- return map [string ]string {
170
- "authority" : "www.bing.com" ,
171
- "accept" : "application/json" ,
172
- "accept-language" : "en-US,en;q=0.9" ,
173
- "cache-control" : "max-age=0" ,
174
- "sec-ch-ua" : `"Chromium";v="110", "Not A(Brand";v="24", "Microsoft Edge";v="110"` ,
175
- "sec-ch-ua-arch" : `"x86"` ,
176
- "sec-ch-ua-bitness" : `"64"` ,
177
- "sec-ch-ua-full-version" : `"110.0.1587.69"` ,
178
- "sec-ch-ua-full-version-list" : `"Chromium";v="110.0.5481.192", "Not A(Brand";v="24.0.0.0", "Microsoft Edge";v="110.0.1587.69"` ,
179
- "sec-ch-ua-mobile" : `"?0"` ,
180
- "sec-ch-ua-model" : `""` ,
181
- "sec-ch-ua-platform" : `"Windows"` ,
182
- "sec-ch-ua-platform-version" : `"15.0.0"` ,
183
- "upgrade-insecure-requests" : "1" ,
184
- "user-agent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.46" ,
185
- "x-edge-shopping-flag" : "1" ,
186
- "x-forwarded-for" : forwardedIP ,
187
- "Cookie" : util .FormatCookieString (cookies ),
188
- }
189
- },
190
- headersCreateImage : func () map [string ]string {
191
- return map [string ]string {
192
- "authority" : "www.bing.com" ,
193
- "accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" ,
194
- "accept-language" : "en-US,en;q=0.9" ,
195
- "cache-control" : "no-cache" ,
196
- "referer" : "https://www.bing.com/search?q=Bing+AI&showconv=1" ,
197
- "upgrade-insecure-requests" : "1" ,
198
- "user-agent" : "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.46" ,
199
- "x-forwarded-for" : forwardedIP ,
200
- "Sec-Fetch-Dest" : "iframe" ,
201
- "Cookie" : util .FormatCookieString (cookies ),
202
- }
203
- },
204
166
cookies : cookies ,
205
167
}
206
168
}
0 commit comments