fix(openclaw): incorrect Alibaba Bailian endpoint default in Viewer UI
Description
The Viewer UI hardcodes an incorrect default endpoint for Alibaba Bailian provider in the embedding/summarizer/skill settings.
Current (wrong):
https://dashscope.aliyuncs.com/compatible-mode/v1
Correct (should be):
https://coding.dashscope.aliyuncs.com/v1
This affects users who select "Alibaba Bailian (百炼)" in the settings and rely on the default endpoint auto-fill.
Location
src/viewer/html.ts line 7240:
```javascript
bailian:{endpoint:"'https://dashscope.aliyuncs.com/compatible-mode/v1',embModel:"'text-embedding-v3',chatModel:"'qwen-max'},
```
Proposed Fix
Change the endpoint to https://coding.dashscope.aliyuncs.com/v1 which is the correct OpenAI-compatible endpoint for DashScope coding models.
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
🤖 AutoDev 已接管此 issue,开始处理。
任务 ID: 68bbac93743adf86
工作分支: autodev/MemOS-1489
目标分支: main
流程: opsp(系分 → 编码 → 自测 → PR)
完成后我会在此回贴 PR 链接;若需要补充信息,我会在本 issue 评论中向您反问。
🚀 AutoDev task 68bbac93743adf86 pushed commit.
Summary: 修复了 Viewer UI 中阿里百炼(Bailian)provider 的默认 endpoint 配置错误。
问题描述:在 packages/memos-core/src/viewer/html.ts 和 apps/memos-local-openclaw/src/viewer/html.ts 中,bailian provider 的默认 endpoint 被错误地硬编码为 https://dashscope.aliyuncs.com/compatible-mode/v1(通用模式端点),导致用户在 Viewer UI 的 embedding/summarizer/skill 设置中选择"阿里百炼"时会自动填充错误的 endpoint。
修复内容:将两个文件第 7240 行的 bailian endpoint 配置从 https://dashscope.aliyuncs.com/compatible-mode/v1 修正为 https://coding.dashscope.aliyuncs.com/v1(DashScope 编码模型的正确 OpenAI 兼容端点)。
影响范围:此修复仅涉及配置字符串变更,不影响代码逻辑,用户现在可以直接使用正确的默认 endpoint 连接阿里百炼服务,无需手动修改。
测试验证:变更仅涉及静态配置字符串,无需编译或运行时测试。已通过 git diff 确认两个文件的修改正确。
Base branch: main
Branch: autodev/MemOS-1489
Commit: f0367e4
I will create the PR next and post the PR link here.
✅ AutoDev task 68bbac93743adf86 completed.
Summary: 修复了 Viewer UI 中阿里百炼(Bailian)provider 的默认 endpoint 配置错误。
问题描述:在 packages/memos-core/src/viewer/html.ts 和 apps/memos-local-openclaw/src/viewer/html.ts 中,bailian provider 的默认 endpoint 被错误地硬编码为 https://dashscope.aliyuncs.com/compatible-mode/v1(通用模式端点),导致用户在 Viewer UI 的 embedding/summarizer/skill 设置中选择"阿里百炼"时会自动填充错误的 endpoint。
修复内容:将两个文件第 7240 行的 bailian endpoint 配置从 https://dashscope.aliyuncs.com/compatible-mode/v1 修正为 https://coding.dashscope.aliyuncs.com/v1(DashScope 编码模型的正确 OpenAI 兼容端点)。
影响范围:此修复仅涉及配置字符串变更,不影响代码逻辑,用户现在可以直接使用正确的默认 endpoint 连接阿里百炼服务,无需手动修改。
测试验证:变更仅涉及静态配置字符串,无需编译或运行时测试。已通过 git diff 确认两个文件的修改正确。
Base branch: main
Branch: autodev/MemOS-1489
Commit: f0367e4
PR: https://github.com/MemTensor/MemOS/pull/1865
Assigned to: @MatthewZhuang, @CarltonXiang, @syzsunshine219
Reviewers: @MatthewZhuang, @CarltonXiang, @syzsunshine219