support for xai grok 4.1 fast
This commit is contained in:
parent
7db51fd3f0
commit
fd1883fe03
2 changed files with 34 additions and 4 deletions
|
|
@ -174,12 +174,21 @@ export const CometAPI: ModelProvider = {
|
|||
|
||||
// Grok Series
|
||||
{
|
||||
model: "grok-4-0709",
|
||||
displayName: "Grok 4 (07-09)",
|
||||
contextLength: 128000,
|
||||
model: "grok-4-1-fast-reasoning",
|
||||
displayName: "Grok 4.1 Fast Reasoning",
|
||||
contextLength: 256000,
|
||||
maxCompletionTokens: 4096,
|
||||
description:
|
||||
"Latest Grok model with improved reasoning and conversational abilities.",
|
||||
"Latest Grok model with faster and improved reasoning and conversational abilities.",
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
model: "grok-4-0709",
|
||||
displayName: "Grok 4 (07-09)",
|
||||
contextLength: 256000,
|
||||
maxCompletionTokens: 4096,
|
||||
description:
|
||||
"Latest Grok model series with improved reasoning and conversational abilities.",
|
||||
recommendedFor: ["chat"],
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -54,6 +54,27 @@ export const xAI: ModelProvider = {
|
|||
recommendedFor: ["chat"],
|
||||
regex: /grok-4/,
|
||||
},
|
||||
{
|
||||
model: "grok-4-1-fast-reasoning",
|
||||
displayName: "Grok 4.1 Fast Reasoning",
|
||||
contextLength: 256000,
|
||||
recommendedFor: ["chat"],
|
||||
regex: /grok-4-1-fast-reasoning/,
|
||||
},
|
||||
{
|
||||
model: "grok-4-1-fast-reasoning",
|
||||
displayName: "Grok 4.1 Fast Non Reasoning",
|
||||
contextLength: 256000,
|
||||
recommendedFor: ["chat"],
|
||||
regex: /grok-4-1-fast-non-reasoning/,
|
||||
},
|
||||
{
|
||||
model: "grok-4",
|
||||
displayName: "Grok 4 Fast",
|
||||
contextLength: 256000,
|
||||
recommendedFor: ["chat"],
|
||||
regex: /grok-4/,
|
||||
},
|
||||
{
|
||||
model: "grok-code-fast-1",
|
||||
displayName: "Grok Code Fast 1",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue