From 4cc0defd707654f18890160c2d71b59e0293a87b Mon Sep 17 00:00:00 2001 From: Georgiy Tarasov Date: Mon, 28 Oct 2024 20:18:20 +0100 Subject: [PATCH] chore(product-assistant): lower temperature for models (#25848) Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- ee/hogai/trends/nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/hogai/trends/nodes.py b/ee/hogai/trends/nodes.py index 9bd71adee91de..845c71fe4ee5e 100644 --- a/ee/hogai/trends/nodes.py +++ b/ee/hogai/trends/nodes.py @@ -125,7 +125,7 @@ def router(self, state: AssistantState): @property def _model(self) -> ChatOpenAI: - return ChatOpenAI(model="gpt-4o", temperature=0.7, streaming=True) + return ChatOpenAI(model="gpt-4o", temperature=0.2, streaming=True) @cached_property def _events_prompt(self) -> str: @@ -283,7 +283,7 @@ def router(self, state: AssistantState): @property def _model(self): - return ChatOpenAI(model="gpt-4o", temperature=0.7, streaming=True).with_structured_output( + return ChatOpenAI(model="gpt-4o", temperature=0.2, streaming=True).with_structured_output( GenerateTrendTool().schema, method="function_calling", include_raw=False,