Skip to content

Commit b251a31

Browse files
authored
Change default temp to 0.3 for chat (#1238)
1 parent 219237f commit b251a31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/backend/approaches/chatreadretrieveread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ async def run_until_final_call(
196196
# Azure Open AI takes the deployment name as the model name
197197
model=self.chatgpt_deployment if self.chatgpt_deployment else self.chatgpt_model,
198198
messages=messages,
199-
temperature=overrides.get("temperature", 0.7),
199+
temperature=overrides.get("temperature", 0.3),
200200
max_tokens=response_token_limit,
201201
n=1,
202202
stream=should_stream,

app/backend/approaches/chatreadretrievereadvision.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ async def run_until_final_call(
194194
chat_coroutine = self.openai_client.chat.completions.create(
195195
model=self.gpt4v_deployment if self.gpt4v_deployment else self.gpt4v_model,
196196
messages=messages,
197-
temperature=overrides.get("temperature", 0.7),
197+
temperature=overrides.get("temperature", 0.3),
198198
max_tokens=response_token_limit,
199199
n=1,
200200
stream=should_stream,

0 commit comments

Comments
 (0)