fix(max): incorrect model (#29485)

This commit is contained in:
Georgiy Tarasov
2025-03-05 15:42:50 +01:00
committed by GitHub
parent 46344a52b6
commit 49e3dc2867

View File

@@ -114,7 +114,7 @@ class RootNode(AssistantNode):
def _get_model(self, state: AssistantState):
# Research suggests temperature is not _massively_ correlated with creativity, hence even in this very
# conversational context we're using a temperature of 0, for near determinism (https://arxiv.org/html/2405.00492v1)
base_model = ChatOpenAI(model="gpt-4", temperature=0.0, streaming=True, stream_usage=True)
base_model = ChatOpenAI(model="gpt-4o", temperature=0.0, streaming=True, stream_usage=True)
# The agent can now be in loops. Since insight building is an expensive operation, we want to limit a recursion depth.
# This will remove the functions, so the agent doesn't have any other option but to exit.