support store for openai (#3399)
This commit is contained in:
+7
-1
@@ -123,7 +123,13 @@ class OpenAILLM(LLMBase):
|
||||
openrouter_params["extra_headers"] = extra_headers
|
||||
|
||||
params.update(**openrouter_params)
|
||||
|
||||
|
||||
else:
|
||||
openai_specific_generation_params = ["store"]
|
||||
for param in openai_specific_generation_params:
|
||||
if hasattr(self.config, param):
|
||||
params[param] = getattr(self.config, param)
|
||||
|
||||
if response_format:
|
||||
params["response_format"] = response_format
|
||||
if tools: # TODO: Remove tools if no issues found with new memory addition logic
|
||||
|
||||
Reference in New Issue
Block a user