Update outdated 'OpenAI' Model (#735)

This commit is contained in:
Prikshit
2023-09-30 23:42:33 +05:30
committed by GitHub
parent d229b108c3
commit 7a1866d280
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ Our app gives you full control over which components you want to use, you can mi
<Tip> <Tip>
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 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) * Embedder: OpenAi (text-embedding-ada-002)
* Database: ChromaDB * Database: ChromaDB
</Tip> </Tip>

View File

@@ -27,7 +27,7 @@ class OpenAILlm(BaseLlm):
messages.append(SystemMessage(content=config.system_prompt)) messages.append(SystemMessage(content=config.system_prompt))
messages.append(HumanMessage(content=prompt)) messages.append(HumanMessage(content=prompt))
kwargs = { kwargs = {
"model": config.model or "gpt-3.5-turbo-0613", "model": config.model or "gpt-3.5-turbo",
"temperature": config.temperature, "temperature": config.temperature,
"max_tokens": config.max_tokens, "max_tokens": config.max_tokens,
"model_kwargs": {}, "model_kwargs": {},