Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 54a4e4e

Browse files
authored
Merge pull request #21 from 006lp/master
feat: replace Mixtral 8x7B with Mistral Small 3 & update headers
2 parents 9c8dd2f + 233982b commit 54a4e4e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

api/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ class Config {
2121
Dnt: '1',
2222
Priority: 'u=1, i',
2323
Referer: 'https://duckduckgo.com/',
24-
'Sec-Ch-Ua': '"Chromium";v="130", "Microsoft Edge";v="130", "Not?A_Brand";v="99"',
24+
'Sec-Ch-Ua': '"Not(A:Brand";v="99", "Microsoft Edge";v="133", "Chromium";v="133"',
2525
'Sec-Ch-Ua-Mobile': '?0',
2626
'Sec-Ch-Ua-Platform': '"Windows"',
2727
'Sec-Fetch-Dest': 'empty',
2828
'Sec-Fetch-Mode': 'cors',
2929
'Sec-Fetch-Site': 'same-origin',
30-
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0',
30+
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0',
3131
}
3232
}
3333
}
@@ -76,7 +76,7 @@ router.get(config.API_PREFIX + '/v1/models', () =>
7676
{ id: 'gpt-4o-mini', object: 'model', owned_by: 'ddg' },
7777
{ id: 'claude-3-haiku', object: 'model', owned_by: 'ddg' },
7878
{ id: 'llama-3.3-70b', object: 'model', owned_by: 'ddg' },
79-
{ id: 'mixtral-8x7b', object: 'model', owned_by: 'ddg' },
79+
{ id: 'mixtral-small-3', object: 'model', owned_by: 'ddg' },
8080
{ id: 'o3-mini', object: 'model', owned_by: 'ddg' },
8181
],
8282
})
@@ -250,8 +250,8 @@ function convertModel(inputModel) {
250250
case 'llama-3.3-70b':
251251
model = 'meta-llama/Llama-3.3-70B-Instruct-Turbo'
252252
break
253-
case 'mixtral-8x7b':
254-
model = 'mistralai/Mixtral-8x7B-Instruct-v0.1'
253+
case 'mixtral-small-3':
254+
model = 'mistralai/Mistral-Small-24B-Instruct-2501'
255255
break
256256
case 'o3-mini':
257257
model = 'o3-mini'

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
支持 Vercel, Cloudflare Workers, Docker, Render 等
77

8-
支持 o3 mini, GPT 4o mini, Claude 3 Haiku, Llama 3.3 70B, Mixtral 8x7B 模型
8+
支持 o3 mini, GPT 4o mini, Claude 3 Haiku, Llama 3.3 70B, Mixtral Small 3 模型
99

1010
所有模型均由 DuckDuckGo 匿名提供
1111

@@ -73,7 +73,7 @@ curl --request POST 'https://chatcfapi.r12.top/v1/chat/completions' \
7373
- gpt-4o-mini
7474
- claude-3-haiku
7575
- llama-3.3-70b
76-
- mixtral-8x7b
76+
- mixtral-small-3
7777
- o3-mini
7878

7979
## 手动部署
@@ -134,7 +134,7 @@ npm install
134134

135135
3. 打开文件 /api/index.js ,取消最后一行的注释,然后执行 `npm run publish:cf`
136136

137-
### Hugging Face
137+
### Hugging Face (推荐)
138138

139139
1. 创建一个新空间:[Create a new Space ](https://huggingface.co/new-space)
140140
```

0 commit comments

Comments
 (0)