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:
co-authored by
ly-wang19
kartik-mem0
parent
66901d7393
commit
32575a65fc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user