修复Organization的bug
This commit is contained in:
parent
8c699c1b26
commit
2c1d6ac212
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user