Skip to content

Commit

Permalink
bugfix: 修复使用finetune的GPT模型时出错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
GaiZhenbiao committed Nov 17, 2023
1 parent 9e09956 commit 7392813
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/models/OpenAI.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ def __init__(
top_p=1.0,
user_name=""
) -> None:
if model_name in MODEL_METADATA:
model_name = MODEL_METADATA[model_name]["model_name"]
super().__init__(
model_name=MODEL_METADATA[model_name]["model_name"],
model_name=model_name,
temperature=temperature,
top_p=top_p,
system_prompt=system_prompt,
Expand Down

0 comments on commit 7392813

Please sign in to comment.