bing-chat-api / networks /conversation_create_headers_constructor.py
Hansimov's picture
:zap: [Enhance] Use requests to replace httpx for cleaner headers
f05e49d
raw
history blame contribute delete
506 Bytes
class ConversationCreateHeadersConstructor:
def __init__(self):
self.construct()
def construct(self):
self.request_headers = {
"Referer": "https://www.bing.com/search?q=Bing+AI&showconv=1&setlang=en&cc=us",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36",
"X-Ms-Useragent": "azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.12.0 OS/Windows",
}