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

Commit e6e13b3

Browse files
authored
Merge pull request #36 from danbao/main
Update duck2api to support o3-mini & llama 3.3-70b models
2 parents e4c41b0 + 4593cb7 commit e6e13b3

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ curl --location 'http://你的服务器ip:8080/v1/chat/completions' \
5858

5959
- ~~gpt-3.5-turbo~~ duckduckGO官方已移除3.5模型的支持
6060
- claude-3-haiku
61-
- llama-3.1-70b
61+
- llama-3.3-70b
6262
- mixtral-8x7b
6363
- gpt-4o-mini
64+
- o3-mini
6465
## 高级设置
6566

6667
默认情况不需要设置,除非你有需求

conversion/requests/duckgo/convert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ func ConvertAPIRequest(api_request officialtypes.APIRequest) duckgotypes.ApiRequ
1818
realModel = "gpt-4o-mini"
1919
case strings.HasPrefix(modelLower, "claude-3-haiku"):
2020
realModel = "claude-3-haiku-20240307"
21-
case strings.HasPrefix(modelLower, "llama-3.1-70b"):
22-
realModel = "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo"
21+
case strings.HasPrefix(modelLower, "llama-3.3-70b"):
22+
realModel = "meta-llama/Llama-3.3-70B-Instruct-Turbo"
2323
case strings.HasPrefix(modelLower, "mixtral-8x7b"):
2424
realModel = "mistralai/Mixtral-8x7B-Instruct-v0.1"
2525
}

initialize/handlers.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ func (h *Handler) engines(c *gin.Context) {
9696
// Supported models
9797
modelIDs := []string{
9898
"gpt-4o-mini",
99+
"o3-mini",
99100
"gpt-3.5-turbo-0125",
100101
"claude-3-haiku-20240307",
101-
"meta-llama/Llama-3-70b-chat-hf",
102+
"meta-llama/Llama-3.3-70B-Instruct-Turbo",
102103
"mistralai/Mixtral-8x7B-Instruct-v0.1",
103104
}
104105

web/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2477,8 +2477,9 @@
24772477
<label for="preSetModel" data-i18n-key="gptModel"></label>
24782478
<select id="preSetModel">
24792479
<option value="gpt-4o-mini">gpt-4o-mini</option>
2480+
<option value="o3-mini">o3-mini</option>
24802481
<option value="claude-3-haiku-20240307">claude-3-haiku-20240307</option>
2481-
<option value="llama-3.1-70b">llama-3.1-70b</option>
2482+
<option value="llama-3.3-70b">llama-3.3-70b</option>
24822483
<option value="mixtral-8x7b">mixtral-8x7b</option>
24832484
</select>
24842485
</div>

0 commit comments

Comments
 (0)