From 83a6049d2750695acfb770c263676686c0b477d4 Mon Sep 17 00:00:00 2001 From: Zixiao Wang Date: Thu, 5 Jun 2025 15:47:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=BD=AE=E8=AE=AD=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E4=BB=A3=E7=90=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/expertproducts/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/expertproducts/views.py b/apps/expertproducts/views.py index 3eafe3b..f82009b 100644 --- a/apps/expertproducts/views.py +++ b/apps/expertproducts/views.py @@ -304,7 +304,7 @@ class NegotiationViewSet(viewsets.ModelViewSet): "temperature": 0.2, "max_tokens": 2048 } - resp = requests.post(vllm_url, json=payload) + resp = requests.post(vllm_url, json=payload, proxies={"http": None, "https": None}) resp.raise_for_status() response_json = resp.json() ai_content = response_json['choices'][0]['message']['content']