From: luozheng <1732036298@qq.com> Date: Tue, 25 Feb 2025 01:57:30 +0000 (+0800) Subject: 修改通义千问为Deepseek X-Git-Tag: v1.3.113-repair_tp~3^2~7 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1659%2Fhead;p=mirrors%2FFD230.git 修改通义千问为Deepseek --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/aivoice/include/AiVoicePresenter.h b/code/sdk/application/wearable/fd230app/nativeui/aivoice/include/AiVoicePresenter.h index 106c4ec99..ede8f78ba 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/include/AiVoicePresenter.h +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/include/AiVoicePresenter.h @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-06-20 14:44:22 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-10-24 17:42:07 + * @LastEditTime: 2025-02-18 14:32:12 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/include/AiVoicePresenter.h */ #ifndef AI_VOICE_PRESENTER_H @@ -31,7 +31,7 @@ namespace OHOS AIMODES_WENXINYIYAN = 0, /*文心一言*/ AIMODES_KIMI, /*KIMI*/ AIMODES_DOUBAO, /*豆包*/ - AIMODES_TONGYI_QIANWEN, /*通义千问*/ + AIMODES_TONGYI_QIANWEN, /*通义千问->DeepSeek*/ AIMODES_IFLYTEK_SPARK, /*讯飞星火*/ AIMODES_CHATGPT, /*chatgpt*/ AIMODES_MAX_NUM, diff --git a/code/sdk/application/wearable/fd230app/nativeui/aivoice/include/AiVoiceView.h b/code/sdk/application/wearable/fd230app/nativeui/aivoice/include/AiVoiceView.h index 62bddd874..d6de21b8e 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/include/AiVoiceView.h +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/include/AiVoiceView.h @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-06-08 09:36:01 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-08-15 18:58:40 + * @LastEditTime: 2025-02-18 14:48:55 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/respiratorytraining/include/AiVoiceView.h */ #ifndef AI_VOICE_VIEW_H @@ -38,6 +38,7 @@ namespace OHOS static constexpr const char *AIMODEL_DOUBAO_PATH = "/user/res/AIVoice/aimodels/aimodels_doubao.bin"; /*豆包*/ static constexpr const char *AIMODEL_TONGYI_QIANWEN_PATH = "/user/res/AIVoice/aimodels/aimodes_tongyi_qianwen.bin"; /*通义千问*/ static constexpr const char *AIMODEL_IFLYTEK_SPARK_PATH = "/user/res/AIVoice/aimodels/aimodes_iflytek_spark.bin"; /*讯飞星火*/ + static constexpr const char *AIMODEL_DEEPSEEK_PATH = "/user/res/AIVoice/aimodels/aimodes_deepseek.bin"; /*deepseek*/ /*组件ID*/ static constexpr const char *AIVOICE_START_CHAT_BUTTON_VIEW_ID = "aivoice_start_chat_button_view_id"; // 开始对话 @@ -66,7 +67,8 @@ namespace OHOS {STR_AIMODES_WENXINYIYAN, AIMODEL_WENXINYIYAN_PATH}, {STR_AIMODES_KIMI, AIMODEL_KIMI_PATH}, {STR_AIMODELS_DOUBAO, AIMODEL_DOUBAO_PATH}, - {STR_TONGYI_QIANWEN, AIMODEL_TONGYI_QIANWEN_PATH}, + // {STR_TONGYI_QIANWEN, AIMODEL_TONGYI_QIANWEN_PATH}, + {STR_DEEPSEEK, AIMODEL_DEEPSEEK_PATH}, {STR_IFLYTEK_SPARK, AIMODEL_IFLYTEK_SPARK_PATH}, {STR_AIMODES_CHATGPT, AIMODEL_CHATGPT_ON_PATH}, }; diff --git a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp index 7dfd132b8..5f7eaf86e 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-06-20 15:14:50 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2025-02-18 11:07:51 + * @LastEditTime: 2025-02-18 14:48:15 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/aivoice/src/AiVoiceModel.cpp */ #include "aivoice/include/AiVoiceModel.h" @@ -1002,7 +1002,8 @@ namespace OHOS {0, {STR_AIMODES_WENXINYIYAN, 0}}, {1, {STR_AIMODES_KIMI, 2}}, {2, {STR_AIMODELS_DOUBAO, 3}}, - {3, {STR_TONGYI_QIANWEN, 4}}, + // {3, {STR_TONGYI_QIANWEN, 4}}, + {3, {STR_DEEPSEEK, 4}}, {4, {STR_IFLYTEK_SPARK, 5}}, {5, {STR_AIMODES_CHATGPT, 1}}, }; @@ -1015,7 +1016,8 @@ namespace OHOS {1, {STR_AIMODES_WENXINYIYAN, 0}}, {2, {STR_AIMODES_KIMI, 2}}, {3, {STR_AIMODELS_DOUBAO, 3}}, - {4, {STR_TONGYI_QIANWEN, 4}}, + // {4, {STR_TONGYI_QIANWEN, 4}}, + {4, {STR_DEEPSEEK, 4}}, {5, {STR_IFLYTEK_SPARK, 5}}, }; textId = STR_AIMODES_CHATGPT;