Skip to content

Commit

Permalink
Changed temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
ksarkar-cloudera committed Dec 11, 2024
1 parent 5765c50 commit cd704e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions aiagents/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def update_configuration(self):
self.llm = AzureChatOpenAI(azure_deployment=environ.get(
"AZURE_OPENAI_DEPLOYMENT", "cml"
)) if self.openai_provider == "AZURE_OPENAI" else ChatOpenAI()
self.llm.temperature = float(environ.get("LLM_TEMPERATURE", 0.1))
self.llm.temperature = float(environ.get("LLM_TEMPERATURE", 0.25))
print("LLM temperature: ", self.llm.temperature)

def update_config_upload(self):
Expand All @@ -100,7 +100,7 @@ def update_config_upload(self):
self.llm = AzureChatOpenAI(azure_deployment=environ.get(
"AZURE_OPENAI_DEPLOYMENT", "cml"
)) if self.openai_provider == "AZURE_OPENAI" else ChatOpenAI()
self.llm.temperature = float(environ.get("LLM_TEMPERATURE", 0.1))
self.llm.temperature = float(environ.get("LLM_TEMPERATURE", 0.25))
print("LLM temperature: ", self.llm.temperature)


Expand Down
2 changes: 1 addition & 1 deletion panel_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

# Environment variables to be stored in the .env file
env_vars = {
"LLM_TEMPERATURE": "0.1",
"LLM_TEMPERATURE": "0.25",
"OPENAI_API_VERSION": "2024-02-01",
"OPENAI_EMBEDDING_MODEL": "text-embedding-ada-002",
}
Expand Down

0 comments on commit cd704e6

Please sign in to comment.