mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 21:35:52 +08:00
fix(models): update isReasoningModel function to exclude embedding models
- Added a check to the isReasoningModel function to return false for embedding models, ensuring correct model classification.
This commit is contained in:
parent
5811adfb7f
commit
f555e604a3
@ -2545,6 +2545,10 @@ export function isReasoningModel(model?: Model): boolean {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isEmbeddingModel(model)) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if (model.provider === 'doubao') {
|
if (model.provider === 'doubao') {
|
||||||
return (
|
return (
|
||||||
REASONING_REGEX.test(model.name) ||
|
REASONING_REGEX.test(model.name) ||
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user