summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBagus Indrayana <bagusindrayanaindo@gmail.com>2023-08-17 15:18:15 +0200
committerBagus Indrayana <bagusindrayanaindo@gmail.com>2023-08-17 15:18:15 +0200
commit9ab880a82640b7bf30883237591cb6c670526b2c (patch)
tree4c250a5df91cc4354b878e4c49e16f46466978e8
parentadd v50 (diff)
downloadgpt4free-9ab880a82640b7bf30883237591cb6c670526b2c.tar
gpt4free-9ab880a82640b7bf30883237591cb6c670526b2c.tar.gz
gpt4free-9ab880a82640b7bf30883237591cb6c670526b2c.tar.bz2
gpt4free-9ab880a82640b7bf30883237591cb6c670526b2c.tar.lz
gpt4free-9ab880a82640b7bf30883237591cb6c670526b2c.tar.xz
gpt4free-9ab880a82640b7bf30883237591cb6c670526b2c.tar.zst
gpt4free-9ab880a82640b7bf30883237591cb6c670526b2c.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/Providers/V50.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/Provider/Providers/V50.py b/g4f/Provider/Providers/V50.py
index 17b26be9..52a42d78 100644
--- a/g4f/Provider/Providers/V50.py
+++ b/g4f/Provider/Providers/V50.py
@@ -36,7 +36,7 @@ def _create_completion(model: str, messages: list, stream: bool, temperature: fl
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36'
}
response = requests.post("https://p5.v50.ltd/api/chat-process",
- json=payload, headers=headers, stream=True)
+ json=payload, headers=headers, proxies=kwargs['proxy'] if 'proxy' in kwargs else {})
yield response.text
params = f'g4f.Providers.{os.path.basename(__file__)[:-3]} supports: ' + \