镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-07 23:16:48 +00:00
修复Organization的bug
这个提交包含在:
@@ -246,7 +246,7 @@ def generate_payload(inputs, llm_kwargs, history, system_prompt, stream):
|
|||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
"Authorization": f"Bearer {api_key}"
|
"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
|
conversation_cnt = len(history) // 2
|
||||||
|
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户