Mem0 fix in embedchain (#1506)

This commit is contained in:
Dev Khant
2024-07-19 15:03:09 -07:00
committed by GitHub
parent e9136c1aa0
commit 51fd7db205
5 changed files with 10 additions and 12 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ class OpenAILlm(BaseLlm):
api_key = config.api_key or os.environ["OPENAI_API_KEY"]
base_url = config.base_url or os.environ.get("OPENAI_API_BASE", None)
if config.top_p:
kwargs["model_kwargs"]["top_p"] = config.top_p
kwargs["top_p"] = config.top_p
if config.default_headers:
kwargs["default_headers"] = config.default_headers
if config.stream: