fix(llms): honor reasoning-model params in OpenAIStructuredLLM (#5458)

Co-authored-by: ly-wang19 <ly-wang19@users.noreply.github.com>
Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai>
This commit is contained in:
ly-wang19
2026-06-15 12:36:15 +05:30
committed by GitHub
co-authored by ly-wang19 kartik-mem0
parent 66901d7393
commit 32575a65fc
2 changed files with 53 additions and 5 deletions
+2 -5
View File
@@ -36,11 +36,8 @@ class OpenAIStructuredLLM(LLMBase):
Returns:
str: The generated response.
"""
params = {
"model": self.config.model,
"messages": messages,
"temperature": self.config.temperature,
}
params = self._get_supported_params(messages=messages)
params["model"] = self.config.model
if response_format:
params["response_format"] = response_format