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:
suyao 2025-06-26 01:31:44 +08:00 committed by one
parent 5811adfb7f
commit f555e604a3

View File

@ -2545,6 +2545,10 @@ export function isReasoningModel(model?: Model): boolean {
return false
}
if (isEmbeddingModel(model)) {
return false
}
if (model.provider === 'doubao') {
return (
REASONING_REGEX.test(model.name) ||