summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Copilot.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-11-23 00:17:35 +0100
committerGitHub <noreply@github.com>2024-11-23 00:17:35 +0100
commit431db7b8ea36667fe5dc4f7e4e5b740c6e8450e7 (patch)
tree6649d7d2c172709f11542f5a8bb2be6ab494bb83 /g4f/Provider/Copilot.py
parentAdd speech synthesize from Gemini (#2404) (diff)
downloadgpt4free-431db7b8ea36667fe5dc4f7e4e5b740c6e8450e7.tar
gpt4free-431db7b8ea36667fe5dc4f7e4e5b740c6e8450e7.tar.gz
gpt4free-431db7b8ea36667fe5dc4f7e4e5b740c6e8450e7.tar.bz2
gpt4free-431db7b8ea36667fe5dc4f7e4e5b740c6e8450e7.tar.lz
gpt4free-431db7b8ea36667fe5dc4f7e4e5b740c6e8450e7.tar.xz
gpt4free-431db7b8ea36667fe5dc4f7e4e5b740c6e8450e7.tar.zst
gpt4free-431db7b8ea36667fe5dc4f7e4e5b740c6e8450e7.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/Copilot.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/g4f/Provider/Copilot.py b/g4f/Provider/Copilot.py
index e10a55e8..2f37b1eb 100644
--- a/g4f/Provider/Copilot.py
+++ b/g4f/Provider/Copilot.py
@@ -73,10 +73,9 @@ class Copilot(AbstractProvider):
else:
access_token = conversation.access_token
debug.log(f"Copilot: Access token: {access_token[:7]}...{access_token[-5:]}")
- debug.log(f"Copilot: Cookies: {';'.join([*cookies])}")
websocket_url = f"{websocket_url}&accessToken={quote(access_token)}"
- headers = {"authorization": f"Bearer {access_token}", "cookie": format_cookies(cookies)}
-
+ headers = {"authorization": f"Bearer {access_token}"}
+
with Session(
timeout=timeout,
proxy=proxy,