From 2c1d6ac212a992755f524eea3a8a35e5d1942311 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Wed, 5 Jul 2023 21:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DOrganization=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- request_llm/bridge_chatgpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/request_llm/bridge_chatgpt.py b/request_llm/bridge_chatgpt.py index 5833c05..858c395 100644 --- a/request_llm/bridge_chatgpt.py +++ b/request_llm/bridge_chatgpt.py @@ -246,7 +246,7 @@ def generate_payload(inputs, llm_kwargs, history, system_prompt, stream): "Content-Type": "application/json", "Authorization": f"Bearer {api_key}" } - if API_ORG.startswith('org-'): headers.update({"org": API_ORG}) + if API_ORG.startswith('org-'): headers.update({"OpenAI-Organization": API_ORG}) conversation_cnt = len(history) // 2