summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-04-12 15:24:07 +0200
committerGitHub <noreply@github.com>2024-04-12 15:24:07 +0200
commit35179fe843f0a43ce44de814d002e9d4489bb4e2 (patch)
tree77dbbadf3751edef47e214a76786f22c41f0d5b2
parentMerge pull request #1827 from nullstreak/deepinfra (diff)
parentFix You.com Provider (diff)
downloadgpt4free-35179fe843f0a43ce44de814d002e9d4489bb4e2.tar
gpt4free-35179fe843f0a43ce44de814d002e9d4489bb4e2.tar.gz
gpt4free-35179fe843f0a43ce44de814d002e9d4489bb4e2.tar.bz2
gpt4free-35179fe843f0a43ce44de814d002e9d4489bb4e2.tar.lz
gpt4free-35179fe843f0a43ce44de814d002e9d4489bb4e2.tar.xz
gpt4free-35179fe843f0a43ce44de814d002e9d4489bb4e2.tar.zst
gpt4free-35179fe843f0a43ce44de814d002e9d4489bb4e2.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(),