From 57c856ef74ac4d62d27f443f7504b1698ffd757b Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Thu, 11 Apr 2024 19:10:03 +0200 Subject: Fix You.com Provider --- g4f/Provider/You.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'g4f') 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(), -- cgit v1.2.3