Skip to content

Commit 694ae87

Browse files
authored
docs: add groq to chatmodeltabs (#22913)
1 parent c816d03 commit 694ae87

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

docs/src/theme/ChatModelTabs.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ import CodeBlock from "@theme-original/CodeBlock";
1010
* @property {string} [anthropicParams] - Parameters for Anthropic chat model. Defaults to `model="claude-3-sonnet-20240229"`
1111
* @property {string} [cohereParams] - Parameters for Cohere chat model. Defaults to `model="command-r"`
1212
* @property {string} [fireworksParams] - Parameters for Fireworks chat model. Defaults to `model="accounts/fireworks/models/mixtral-8x7b-instruct"`
13+
* @property {string} [groqParams] - Parameters for Groq chat model. Defaults to `model="llama3-8b-8192"`
1314
* @property {string} [mistralParams] - Parameters for Mistral chat model. Defaults to `model="mistral-large-latest"`
1415
* @property {string} [googleParams] - Parameters for Google chat model. Defaults to `model="gemini-pro"`
1516
* @property {string} [togetherParams] - Parameters for Together chat model. Defaults to `model="mistralai/Mixtral-8x7B-Instruct-v0.1"`
1617
* @property {boolean} [hideOpenai] - Whether or not to hide OpenAI chat model.
1718
* @property {boolean} [hideAnthropic] - Whether or not to hide Anthropic chat model.
1819
* @property {boolean} [hideCohere] - Whether or not to hide Cohere chat model.
1920
* @property {boolean} [hideFireworks] - Whether or not to hide Fireworks chat model.
21+
* @property {boolean} [hideGroq] - Whether or not to hide Groq chat model.
2022
* @property {boolean} [hideMistral] - Whether or not to hide Mistral chat model.
2123
* @property {boolean} [hideGoogle] - Whether or not to hide Google VertexAI chat model.
2224
* @property {boolean} [hideTogether] - Whether or not to hide Together chat model.
@@ -33,6 +35,7 @@ export default function ChatModelTabs(props) {
3335
anthropicParams,
3436
cohereParams,
3537
fireworksParams,
38+
groqParams,
3639
mistralParams,
3740
googleParams,
3841
togetherParams,
@@ -41,6 +44,7 @@ export default function ChatModelTabs(props) {
4144
hideAnthropic,
4245
hideCohere,
4346
hideFireworks,
47+
hideGroq,
4448
hideMistral,
4549
hideGoogle,
4650
hideTogether,
@@ -55,6 +59,7 @@ export default function ChatModelTabs(props) {
5559
const fireworksParamsOrDefault =
5660
fireworksParams ??
5761
`model="accounts/fireworks/models/mixtral-8x7b-instruct"`;
62+
const groqParamsOrDefault = groqParams ?? `model="llama3-8b-8192"`;
5863
const mistralParamsOrDefault =
5964
mistralParams ?? `model="mistral-large-latest"`;
6065
const googleParamsOrDefault = googleParams ?? `model="gemini-pro"`;
@@ -122,6 +127,15 @@ export default function ChatModelTabs(props) {
122127
default: false,
123128
shouldHide: hideFireworks,
124129
},
130+
{
131+
value: "Groq",
132+
label: "Groq",
133+
text: `from langchain_groq import ChatGroq\n\n${llmVarName} = ChatGroq(${groqParamsOrDefault})`,
134+
apiKeyName: "GROQ_API_KEY",
135+
packageName: "langchain-groq",
136+
default: false,
137+
shouldHide: hideGroq,
138+
},
125139
{
126140
value: "MistralAI",
127141
label: "MistralAI",

0 commit comments

Comments
 (0)