From 30e5788304c00317f74a56b124583acf7bd3a5cc Mon Sep 17 00:00:00 2001 From: meethuhu Date: Thu, 15 Aug 2024 11:48:13 +0800 Subject: [PATCH 1/2] Updated model: llama-3.1-70b --- .github/workflows/build.yml | 2 +- web/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3dc8b36..9ae7d6b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GHCR_PAT }} with: - tag_name: v2.1.2 + tag_name: v2.1.3 files: | duck2api-linux-amd64.tar.gz duck2api-windows-amd64.tar.gz diff --git a/web/index.html b/web/index.html index e37178c..fb5e06b 100644 --- a/web/index.html +++ b/web/index.html @@ -2478,7 +2478,7 @@ From ec5580b969f7677b72c8e33d73b91e7d31349ef3 Mon Sep 17 00:00:00 2001 From: meethuhu Date: Thu, 15 Aug 2024 11:50:34 +0800 Subject: [PATCH 2/2] Updated model: llama-3.1-70b --- README.md | 2 +- conversion/requests/duckgo/convert.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 70f523b..b566d32 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ curl --location 'http://你的服务器ip:8080/v1/chat/completions' \ - ~~gpt-3.5-turbo~~ duckduckGO官方已移除3.5模型的支持 - claude-3-haiku -- llama-3-70b +- llama-3.1-70b - mixtral-8x7b - gpt-4o-mini ## 高级设置 diff --git a/conversion/requests/duckgo/convert.go b/conversion/requests/duckgo/convert.go index 007baba..2efe2e4 100644 --- a/conversion/requests/duckgo/convert.go +++ b/conversion/requests/duckgo/convert.go @@ -18,8 +18,8 @@ func ConvertAPIRequest(api_request officialtypes.APIRequest) duckgotypes.ApiRequ realModel = "gpt-4o-mini" case strings.HasPrefix(modelLower, "claude-3-haiku"): realModel = "claude-3-haiku-20240307" - case strings.HasPrefix(modelLower, "llama-3-70b"): - realModel = "meta-llama/Llama-3-70b-chat-hf" + case strings.HasPrefix(modelLower, "llama-3.1-70b"): + realModel = "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo" case strings.HasPrefix(modelLower, "mixtral-8x7b"): realModel = "mistralai/Mixtral-8x7B-Instruct-v0.1" }