mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 14:41:24 +08:00
feat(models): support Grok4 (#8032)
refactor(models): rename and enhance reasoning model functions for clarity and functionality
This commit is contained in:
parent
fca93b6c51
commit
db642f0837
@ -2487,7 +2487,7 @@ export function isGrokModel(model?: Model): boolean {
|
|||||||
return model.id.includes('grok')
|
return model.id.includes('grok')
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isGrokReasoningModel(model?: Model): boolean {
|
export function isSupportedReasoningEffortGrokModel(model?: Model): boolean {
|
||||||
if (!model) {
|
if (!model) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@ -2499,7 +2499,16 @@ export function isGrokReasoningModel(model?: Model): boolean {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isSupportedReasoningEffortGrokModel = isGrokReasoningModel
|
export function isGrokReasoningModel(model?: Model): boolean {
|
||||||
|
if (!model) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if (isSupportedReasoningEffortGrokModel(model) || model.id.includes('grok-4')) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
export function isGeminiReasoningModel(model?: Model): boolean {
|
export function isGeminiReasoningModel(model?: Model): boolean {
|
||||||
if (!model) {
|
if (!model) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user