summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-11 19:10:03 +0200
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-04-11 19:10:03 +0200
commit57c856ef74ac4d62d27f443f7504b1698ffd757b (patch)
tree244f4f690b2372a8e7bcddfa22e56c57428d895a /g4f/Provider
parentUpdate chat.v1.js (diff)
downloadgpt4free-57c856ef74ac4d62d27f443f7504b1698ffd757b.tar
gpt4free-57c856ef74ac4d62d27f443f7504b1698ffd757b.tar.gz
gpt4free-57c856ef74ac4d62d27f443f7504b1698ffd757b.tar.bz2
gpt4free-57c856ef74ac4d62d27f443f7504b1698ffd757b.tar.lz
gpt4free-57c856ef74ac4d62d27f443f7504b1698ffd757b.tar.xz
gpt4free-57c856ef74ac4d62d27f443f7504b1698ffd757b.tar.zst
gpt4free-57c856ef74ac4d62d27f443f7504b1698ffd757b.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/You.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/g4f/Provider/You.py b/g4f/Provider/You.py
index 7816b07a..be4ab523 100644
--- a/g4f/Provider/You.py
+++ b/g4f/Provider/You.py
@@ -164,7 +164,9 @@ class You(AsyncGeneratorProvider, ProviderModelMixin):
headers={
"Authorization": cls.get_auth(),
"X-SDK-Client": cls.get_sdk(),
- "X-SDK-Parent-Host": cls.url
+ "X-SDK-Parent-Host": cls.url,
+ "Origin": "https://you.com",
+ "Referer": "https://you.com/"
},
json={
"dfp_telemetry_id": await get_dfp_telemetry_id(),