Skip to content

Commit

Permalink
set temp to 0 for deterministic responses
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Feb 13, 2024
1 parent fd847c6 commit 6a8b8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codergpt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CoderGPT:
def __init__(self, model: str = GPT_4_TURBO):
"""Initialize the CoderGPT class."""
if model is None or model.startswith("gpt-"):
self.llm = ChatOpenAI(openai_api_key=os.environ.get("OPENAI_API_KEY"), temperature=0.7, model=model)
self.llm = ChatOpenAI(openai_api_key=os.environ.get("OPENAI_API_KEY"), temperature=0, model=model)
# elif model == CLAUDE:
# self.llm = ChatAnthropic()
# print("Coming Soon!")
Expand Down

0 comments on commit 6a8b8e7

Please sign in to comment.