mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-02-07 11:31:07 +08:00
refactor: improve model type checking logic in models.ts and ModelEditContent.tsx * Refactor isFunctionCallingModel, isEmbeddingModel, isVisionModel, isReasoningModel, and isWebSearchModel functions for better readability and maintainability. * Simplify type selection logic in ModelEditContent by directly using model.type or defaultTypes. * Remove unnecessary conditional checks to streamline the code. Co-authored-by: kanweiwei <kanweiwei@nutstore.net> |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||