docs: set default anthropic model (#21988)

`ChatAnthropic()` raises ValidationError.
This commit is contained in:
ccurme
2024-05-21 11:01:18 -07:00
committed by GitHub
parent 5448e16fe6
commit a983465694
5 changed files with 8 additions and 6 deletions

View File

@@ -90,8 +90,8 @@
"outputs": [],
"source": [
"# Note that we set max_retries = 0 to avoid retrying on RateLimits, etc\n",
"openai_llm = ChatOpenAI(max_retries=0)\n",
"anthropic_llm = ChatAnthropic()\n",
"openai_llm = ChatOpenAI(model=\"gpt-3.5-turbo-0125\", max_retries=0)\n",
"anthropic_llm = ChatAnthropic(model=\"claude-3-haiku-20240307\")\n",
"llm = openai_llm.with_fallbacks([anthropic_llm])"
]
},