Adjust the LLM temperature to reduce hallucinations
This commit is contained in:
parent
628fd55201
commit
d004ea06d5
@ -115,7 +115,7 @@ class LoggerChatModel:
|
|||||||
class GPTAnswerer:
|
class GPTAnswerer:
|
||||||
def __init__(self, openai_api_key):
|
def __init__(self, openai_api_key):
|
||||||
self.llm_cheap = LoggerChatModel(
|
self.llm_cheap = LoggerChatModel(
|
||||||
ChatOpenAI(model_name="gpt-4o-mini", openai_api_key=openai_api_key, temperature=0.8)
|
ChatOpenAI(model_name="gpt-4o-mini", openai_api_key=openai_api_key, temperature=0.4)
|
||||||
)
|
)
|
||||||
@property
|
@property
|
||||||
def job_description(self):
|
def job_description(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user