From 7a1866d2802091229fc029133feb8175bc3debce Mon Sep 17 00:00:00 2001 From: Prikshit <101416953+Prikshit7766@users.noreply.github.com> Date: Sat, 30 Sep 2023 23:42:33 +0530 Subject: [PATCH] Update outdated 'OpenAI' Model (#735) --- docs/advanced/app_types.mdx | 2 +- embedchain/llm/openai.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/advanced/app_types.mdx b/docs/advanced/app_types.mdx index 8ff600af..d8a8f54f 100644 --- a/docs/advanced/app_types.mdx +++ b/docs/advanced/app_types.mdx @@ -11,7 +11,7 @@ Our app gives you full control over which components you want to use, you can mi Out of the box, if you just use `app = App()`, Embedchain uses what we believe to be the best configuration available. This might include paid/proprietary components. Currently, this is -* LLM: OpenAi (gpt-3.5-turbo-0613) +* LLM: OpenAi (gpt-3.5-turbo) * Embedder: OpenAi (text-embedding-ada-002) * Database: ChromaDB diff --git a/embedchain/llm/openai.py b/embedchain/llm/openai.py index 5e3191a6..22189b03 100644 --- a/embedchain/llm/openai.py +++ b/embedchain/llm/openai.py @@ -27,7 +27,7 @@ class OpenAILlm(BaseLlm): messages.append(SystemMessage(content=config.system_prompt)) messages.append(HumanMessage(content=prompt)) kwargs = { - "model": config.model or "gpt-3.5-turbo-0613", + "model": config.model or "gpt-3.5-turbo", "temperature": config.temperature, "max_tokens": config.max_tokens, "model_kwargs": {},