cherry-studio/docs/technical
one 736f73a726
refactor: match provider and model using a consistent method (#7933)
* refactor: match provider and model using a consistent method

* refactor: use keywords matching across model selectors

* refactor: update match, reuse getFancyProviderName

* refactor: use modelSelectFilter in knowledgebase settings

* refactor: use filter in ModelList

* refactor: add filterModelsByKeywords

* refactor: add getModelSelectOptions

* style: better function names

* fix: update effect dependencies in popup and panel components

Adjusted dependency arrays in HtmlArtifactsPopup and QuickPanelView to ensure correct effect execution. This change improves state synchronization and prevents unnecessary updates.

* refactor: use match in memory settings

* refactor: add avatar to model selector

* refactor: simplify utils, move select options to components

* docs: add comments

* refactor: move filter to SelectOptions

* test: add tests for SelectOptions

* test: remove type mock

* refactor: use match in EditModelsPopup

* refactor: use SelectOptions in SelectProviderModelPopup, add more tests

* fix: api check model select

* refactor: improve websearch rag model select style

* refactor: add a ModelSelector

* test: update tests for ModelSelector

* docs: comments

---------

Co-authored-by: 自由的世界人 <3196812536@qq.com>
2025-07-23 10:45:09 +08:00
..
code-execution.md feat(CodeBlock): support matplotlib in code execution (#8069) 2025-07-21 21:19:06 +08:00
db.settings.md refactor(translate): Language Type (#7727) 2025-07-07 22:08:56 +08:00
how-to-use-logger-en.md refactor: match provider and model using a consistent method (#7933) 2025-07-23 10:45:09 +08:00
how-to-use-logger-zh.md refactor: match provider and model using a consistent method (#7933) 2025-07-23 10:45:09 +08:00
how-to-use-messageBlock.md feat: 添加 messageBlock、messageThunk 和 useMessageOperations 使用指南文档 2025-04-29 15:14:55 +08:00
how-to-use-messageThunk.md feat: 添加 messageBlock、messageThunk 和 useMessageOperations 使用指南文档 2025-04-29 15:14:55 +08:00
how-to-use-useMessageOperations.md feat: 添加 messageBlock、messageThunk 和 useMessageOperations 使用指南文档 2025-04-29 15:14:55 +08:00
how-to-write-middlewares.md refactor: model list and health check (#7997) 2025-07-21 15:57:08 +08:00
KnowledgeService.md docs: Add comprehensive documentation for KnowledgeService concurrent processing mechanism 2025-03-02 20:36:13 +08:00
message-lifecycle.png refactor: message block structure (#4660) 2025-04-29 14:12:07 +08:00
Message.md refactor: message block structure (#4660) 2025-04-29 14:12:07 +08:00