Skip to content

Commit 6dda206

Browse files
authored
Update bridge_openrouter.py (#2132)
fix openrouter api 400 post bug Co-authored-by: lan <[email protected]>
1 parent 8a0d96a commit 6dda206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

request_llms/bridge_openrouter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def generate_payload(inputs:str, llm_kwargs:dict, history:list, system_prompt:st
512512
model, _ = read_one_api_model_name(model)
513513
if llm_kwargs['llm_model'].startswith('openrouter-'):
514514
model = llm_kwargs['llm_model'][len('openrouter-'):]
515-
model= read_one_api_model_name(model)
515+
model, _= read_one_api_model_name(model)
516516
if model == "gpt-3.5-random": # 随机选择, 绕过openai访问频率限制
517517
model = random.choice([
518518
"gpt-3.5-turbo",

0 commit comments

Comments
 (0)