Skip to content

Commit

Permalink
fix: (OpenAIChatBot) adjust temperature parameter for specific models
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeikang committed Dec 4, 2024
1 parent 7d08ad0 commit 2e62219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ async def __chat(self, messages, model, temperature, **kwargs):
model=model,
messages=messages,
n=1,
temperature=temperature,
temperature=1 if model.startswith("o1") else temperature,
# stream=stream,
**kwargs,
)
Expand Down

0 comments on commit 2e62219

Please sign in to comment.