docs: update chat model tabs (#30330)

This commit is contained in:
ccurme 2025-03-17 15:39:10 -04:00 committed by GitHub
parent 4c68749e38
commit 54eab796ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,7 +99,7 @@ export const CustomDropdown = ({ selectedOption, options, onSelect, modelType })
* @param {ChatModelTabsProps} props - Component props.
*/
export default function ChatModelTabs(props) {
const [selectedModel, setSelectedModel] = useState("groq");
const [selectedModel, setSelectedModel] = useState("openai");
const {
overrideParams,
customVarName,
@ -108,13 +108,6 @@ export default function ChatModelTabs(props) {
const llmVarName = customVarName ?? "model";
const tabItems = [
{
value: "groq",
label: "Groq",
model: "llama3-8b-8192",
apiKeyName: "GROQ_API_KEY",
packageName: "langchain[groq]",
},
{
value: "openai",
label: "OpenAI",
@ -156,6 +149,13 @@ ${llmVarName} = AzureChatOpenAI(
apiKeyText: "# Ensure your AWS credentials are configured",
packageName: "langchain[aws]",
},
{
value: "groq",
label: "Groq",
model: "llama3-8b-8192",
apiKeyName: "GROQ_API_KEY",
packageName: "langchain[groq]",
},
{
value: "cohere",
label: "Cohere",