mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-04 02:33:05 +00:00
docs: update chat model tabs (#30330)
This commit is contained in:
parent
4c68749e38
commit
54eab796ab
@ -99,7 +99,7 @@ export const CustomDropdown = ({ selectedOption, options, onSelect, modelType })
|
|||||||
* @param {ChatModelTabsProps} props - Component props.
|
* @param {ChatModelTabsProps} props - Component props.
|
||||||
*/
|
*/
|
||||||
export default function ChatModelTabs(props) {
|
export default function ChatModelTabs(props) {
|
||||||
const [selectedModel, setSelectedModel] = useState("groq");
|
const [selectedModel, setSelectedModel] = useState("openai");
|
||||||
const {
|
const {
|
||||||
overrideParams,
|
overrideParams,
|
||||||
customVarName,
|
customVarName,
|
||||||
@ -108,13 +108,6 @@ export default function ChatModelTabs(props) {
|
|||||||
const llmVarName = customVarName ?? "model";
|
const llmVarName = customVarName ?? "model";
|
||||||
|
|
||||||
const tabItems = [
|
const tabItems = [
|
||||||
{
|
|
||||||
value: "groq",
|
|
||||||
label: "Groq",
|
|
||||||
model: "llama3-8b-8192",
|
|
||||||
apiKeyName: "GROQ_API_KEY",
|
|
||||||
packageName: "langchain[groq]",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
value: "openai",
|
value: "openai",
|
||||||
label: "OpenAI",
|
label: "OpenAI",
|
||||||
@ -156,6 +149,13 @@ ${llmVarName} = AzureChatOpenAI(
|
|||||||
apiKeyText: "# Ensure your AWS credentials are configured",
|
apiKeyText: "# Ensure your AWS credentials are configured",
|
||||||
packageName: "langchain[aws]",
|
packageName: "langchain[aws]",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
value: "groq",
|
||||||
|
label: "Groq",
|
||||||
|
model: "llama3-8b-8192",
|
||||||
|
apiKeyName: "GROQ_API_KEY",
|
||||||
|
packageName: "langchain[groq]",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
value: "cohere",
|
value: "cohere",
|
||||||
label: "Cohere",
|
label: "Cohere",
|
||||||
|
Loading…
Reference in New Issue
Block a user