修复Organization的bug

这个提交包含在:
binary-husky
2023-07-05 21:14:13 +08:00
父节点 8c699c1b26
当前提交 2c1d6ac212

查看文件

@@ -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