Skip to content

feat(ai): add hunyuan models #645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
"type": "module",
"version": "2.0.0",
"private": false,
"description": "WeChat Markdown Editor | 一款高度简洁的微信 Markdown 编辑器:支持 Markdown 语法、自定义主题样式、内容管理、多图床、AI 助手等特性",
"homepage": "https://github.com/doocs/md",
"repository": {
"type": "git",
"url": "https://github.com/doocs/md"
},
"bugs": {
"url": "https://github.com/doocs/md/issues"
},
"scripts": {
"start": "npm run dev",
"dev": "vite --host",
Expand Down
96 changes: 89 additions & 7 deletions src/components/ai/AIConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,102 @@ const serviceOptions = [
label: `通义千问`,
endpoint: `https://dashscope.aliyuncs.com/compatible-mode/v1`,
models: [
`qwen-plus`,
`qwen-max`,
`qwen-turbo`,
`qwen-math-plus`,
`qwen-math-turbo`,
`qwen-vl-max-2025-04-02`,
`deepseek-v3`,
`deepseek-r1-distill-llama-70b`,
`deepseek-r1-distill-qwen-32b`,
`deepseek-r1-distill-qwen-14b`,
`deepseek-r1-distill-llama-8b`,
`deepseek-r1-distill-qwen-1.5b`,
`deepseek-r1-distill-qwen-7b`,
`deepseek-r1`,
`qwen1.5-7b-chat`,
// `qwen-vl-ocr-latest`,
// `qwen-vl-ocr`,
`qwen-coder-plus-1106`,
`qwen-coder-plus`,
`qwen-coder-plus-latest`,
`qwen2.5-coder-3b-instruct`,
`qwen2.5-coder-0.5b-instruct`,
`qwen2.5-coder-14b-instruct`,
`qwen2.5-coder-32b-instruct`,
`qwen-coder-turbo-0919`,
`qwen2.5-0.5b-instruct`,
`qwen2.5-1.5b-instruct`,
`qwen2.5-3b-instruct`,
`qwen2.5-7b-instruct`,
`qwen2.5-14b-instruct`,
`qwen2.5-32b-instruct`,
`qwen2.5-72b-instruct`,
`qwen2.5-coder-7b-instruct`,
`qwen2.5-math-1.5b-instruct`,
`qwen2.5-math-7b-instruct`,
`qwen2.5-math-72b-instruct`,
`qwen-turbo-0919`,
`qwen-turbo-latest`,
`qwen-plus-0919`,
`qwen-plus-latest`,
`qwen-max-0919`,
`qwen-max-latest`,
`qwen-coder-turbo`,
`qwen-vl-plus`,
`qwen-coder-turbo-latest`,
`qwen-math-turbo-0919`,
`qwen-math-turbo`,
`qwen-math-turbo-latest`,
`qwen-math-plus-0919`,
`qwen-math-plus`,
`qwen-math-plus-latest`,
`qwen2-57b-a14b-instruct`,
`qwen2-72b-instruct`,
`qwen2-7b-instruct`,
`qwen2-0.5b-instruct`,
`qwen2-1.5b-instruct`,
`qwen-long`,
`qwen-vl-max`,
`qwen-vl-plus`,
`qwen-max-0428`,
`qwen1.5-110b-chat`,
`qwen-72b-chat`,
`codeqwen1.5-7b-chat`,
`qwen1.5-0.5b-chat`,
`qwen-1.8b-chat`,
`qwen-1.8b-longcontext-chat`,
`qwen-7b-chat`,
`qwen-14b-chat`,
`qwen1.5-14b-chat`,
`qwen1.5-1.8b-chat`,
`qwen1.5-32b-chat`,
`qwen1.5-72b-chat`,
`qwen-max-1201`,
`qwen-max-longcontext`,
`qwen-max-0403`,
`qwen-max-0107`,
`qwen-turbo`,
`qwen-max`,
`qwen-plus`,
],
},
{
value: `hunyuan`,
label: `腾讯混元`,
endpoint: `https://api.hunyuan.cloud.tencent.com/v1`,
models: [
`hunyuan-pro`,
`hunyuan-vision`,
`hunyuan-lite`,
`hunyuan-standard`,
`hunyuan-standard-32K`,
`hunyuan-standard-256k`,
`hunyuan-code`,
`hunyuan-role`,
`hunyuan-functioncall`,
`hunyuan-turbo-vision`,
`hunyuan-turbo`,
],
},
{
value: `custom`,
label: `自定义服务`,
label: `自定义兼容 OpenAI API 的服务`,
endpoint: ``,
models: [],
},
Expand Down