Skip to content

Commit 92d46a3

Browse files
remove groq llama2 and add llama3 8 b model (#1717)
Groq removed the Llama 2 model, replacing it with the Llama 3 8b model
1 parent 605f8e4 commit 92d46a3

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

lib/chat-setting-limits.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ export const CHAT_SETTING_LIMITS: Record<LLMID, ChatSettingLimits> = {
8181
},
8282

8383
// GROQ MODELS
84-
"llama2-70b-4096": {
84+
"llama3-8b-8192": {
8585
MIN_TEMPERATURE: 0.0,
8686
MAX_TEMPERATURE: 1.0,
87-
MAX_TOKEN_OUTPUT_LENGTH: 4096,
88-
MAX_CONTEXT_LENGTH: 4096
87+
MAX_TOKEN_OUTPUT_LENGTH: 8192,
88+
MAX_CONTEXT_LENGTH: 8192
8989
},
9090
"llama3-70b-8192": {
9191
MIN_TEMPERATURE: 0.0,

lib/models/llm/groq-llm-list.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ import { LLM } from "@/types"
22

33
const GROQ_PLATORM_LINK = "https://groq.com/"
44

5-
const LLaMA2_70B: LLM = {
6-
modelId: "llama2-70b-4096",
7-
modelName: "LLaMA2-70b-chat",
5+
const LLaMA3_8B: LLM = {
6+
modelId: "llama3-8b-8192",
7+
modelName: "LLaMA3-8b-chat",
88
provider: "groq",
9-
hostedId: "llama2-70b-4096",
9+
hostedId: "llama3-8b-8192",
1010
platformLink: GROQ_PLATORM_LINK,
1111
imageInput: false,
1212
pricing: {
1313
currency: "USD",
1414
unit: "1M tokens",
15-
inputCost: 0.7,
16-
outputCost: 0.8
15+
inputCost: 0.05,
16+
outputCost: 0.10
1717
}
1818
}
1919

@@ -47,4 +47,4 @@ const MIXTRAL_8X7B: LLM = {
4747
}
4848
}
4949

50-
export const GROQ_LLM_LIST: LLM[] = [LLaMA2_70B, LLaMA3_70B, MIXTRAL_8X7B]
50+
export const GROQ_LLM_LIST: LLM[] = [LLaMA3_8B, LLaMA3_70B, MIXTRAL_8X7B]

types/llms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export type MistralLLMID =
3636
| "mistral-large-latest" // Mistral Large
3737

3838
export type GroqLLMID =
39-
| "llama2-70b-4096" // LLaMA2-70b
39+
| "llama3-8b-8192" // LLaMA3-8b
4040
| "llama3-70b-8192" // LLaMA3-70b
4141
| "mixtral-8x7b-32768" // Mixtral-8x7b
4242

0 commit comments

Comments
 (0)