This repository was archived by the owner on Apr 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
conversion/requests/duckgo Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 env :
4343 GITHUB_TOKEN : ${{ secrets.GHCR_PAT }}
4444 with :
45- tag_name : v2.0.9
45+ tag_name : v2.1.0
4646 files : |
4747 duck2api-linux-amd64.tar.gz
4848 duck2api-windows-amd64.tar.gz
Original file line number Diff line number Diff line change @@ -61,7 +61,8 @@ curl --location 'http://你的服务器ip:8080/v1/chat/completions' \
6161 "stream": true
6262 }'
6363```
64- 支持claude和gpt-3.5-turbo
64+ ## 支持的模型
65+ claude和gpt-3.5-turbo,Llama-3-70b,Mixtral-8x7B等模型
6566## 高级设置
6667
6768默认情况不需要设置,除非你有需求
Original file line number Diff line number Diff line change @@ -13,6 +13,14 @@ func ConvertAPIRequest(api_request officialtypes.APIRequest) duckgotypes.ApiRequ
1313 if strings .HasPrefix (strings .ToLower (api_request .Model ), "claude" ) {
1414 duckgo_request .Model = "claude-3-haiku-20240307"
1515 }
16+ if strings .HasPrefix (strings .ToLower (api_request .Model ), "Llama-3-70b" ) {
17+
18+ duckgo_request .Model = "meta-llama/Llama-3-70b-chat-hf"
19+ }
20+ if strings .HasPrefix (strings .ToLower (api_request .Model ), "Mixtral-8x7B" ) {
21+
22+ duckgo_request .Model = "mistralai/Mixtral-8x7B-Instruct-v0.1"
23+ }
1624 content := buildContent (& api_request )
1725 duckgo_request .AddMessage ("user" , content )
1826 return duckgo_request
You can’t perform that action at this time.
0 commit comments