mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 23:10:20 +08:00
feat(models): add Grok 4 model and update reasoning regex (#8545)
* feat(models): add Grok 4 model and update reasoning regex * feat(models): add grok-4 to vision model
This commit is contained in:
parent
fd01653164
commit
dfceed8751
@ -172,6 +172,7 @@ const visionAllowedModels = [
|
|||||||
'qvq',
|
'qvq',
|
||||||
'internvl2',
|
'internvl2',
|
||||||
'grok-vision-beta',
|
'grok-vision-beta',
|
||||||
|
'grok-4(?:-[\\w-]+)?',
|
||||||
'pixtral',
|
'pixtral',
|
||||||
'gpt-4(?:-[\\w-]+)',
|
'gpt-4(?:-[\\w-]+)',
|
||||||
'gpt-4.1(?:-[\\w-]+)?',
|
'gpt-4.1(?:-[\\w-]+)?',
|
||||||
@ -217,7 +218,7 @@ export const TEXT_TO_IMAGE_REGEX = /flux|diffusion|stabilityai|sd-|dall|cogview|
|
|||||||
|
|
||||||
// Reasoning models
|
// Reasoning models
|
||||||
export const REASONING_REGEX =
|
export const REASONING_REGEX =
|
||||||
/^(o\d+(?:-[\w-]+)?|.*\b(?:reasoning|reasoner|thinking)\b.*|.*-[rR]\d+.*|.*\bqwq(?:-[\w-]+)?\b.*|.*\bhunyuan-t1(?:-[\w-]+)?\b.*|.*\bglm-zero-preview\b.*|.*\bgrok-3-mini(?:-[\w-]+)?\b.*)$/i
|
/^(o\d+(?:-[\w-]+)?|.*\b(?:reasoning|reasoner|thinking)\b.*|.*-[rR]\d+.*|.*\bqwq(?:-[\w-]+)?\b.*|.*\bhunyuan-t1(?:-[\w-]+)?\b.*|.*\bglm-zero-preview\b.*|.*\bgrok-(?:3-mini|4)(?:-[\w-]+)?\b.*)$/i
|
||||||
|
|
||||||
// Embedding models
|
// Embedding models
|
||||||
export const EMBEDDING_REGEX =
|
export const EMBEDDING_REGEX =
|
||||||
@ -1552,6 +1553,12 @@ export const SYSTEM_MODELS: Record<string, Model[]> = {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
grok: [
|
grok: [
|
||||||
|
{
|
||||||
|
id: 'grok-4',
|
||||||
|
provider: 'grok',
|
||||||
|
name: 'Grok 4',
|
||||||
|
group: 'Grok'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'grok-3',
|
id: 'grok-3',
|
||||||
provider: 'grok',
|
provider: 'grok',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user