From 28885feea2bf88145e3e40a0835d902d2a46efb3 Mon Sep 17 00:00:00 2001 From: Benny Date: Mon, 2 Dec 2024 15:59:08 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20360=E6=99=BA=E8=83=BD=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- common/constants.go | 2 +- common/model-ratio.go | 1 + relay/channel/ai360/constants.go | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b9860e48..afd46d33 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ - `STREAMING_TIMEOUT`:设置流式一次回复的超时时间,默认为 60 秒。 - `DIFY_DEBUG`:设置 Dify 渠道是否输出工作流和节点信息到客户端,默认为 `true`。 - `FORCE_STREAM_OPTION`:是否覆盖客户端stream_options参数,请求上游返回流模式usage,默认为 `true`,建议开启,不影响客户端传入stream_options参数返回结果。 -- `GET_MEDIA_TOKEN`:是统计图片token,默认为 `true`,关闭后将不再在本地计算图片token,可能会导致和上游计费不同,此项覆盖 `GET_MEDIA_TOKEN_NOT_STREAM` 选项作用。 +- `GET_MEDIA_TOKEN`:是否统计图片token,默认为 `true`,关闭后将不再在本地计算图片token,可能会导致和上游计费不同,此项覆盖 `GET_MEDIA_TOKEN_NOT_STREAM` 选项作用。 - `GET_MEDIA_TOKEN_NOT_STREAM`:是否在非流(`stream=false`)情况下统计图片token,默认为 `true`。 - `UPDATE_TASK`:是否更新异步任务(Midjourney、Suno),默认为 `true`,关闭后将不会更新任务进度。 - `GEMINI_MODEL_MAP`:Gemini模型指定版本(v1/v1beta),使用“模型:版本”指定,","分隔,例如:-e GEMINI_MODEL_MAP="gemini-1.5-pro-latest:v1beta,gemini-1.5-pro-001:v1beta",为空则使用默认配置(v1beta) diff --git a/common/constants.go b/common/constants.go index 58158029..62cad0db 100644 --- a/common/constants.go +++ b/common/constants.go @@ -254,7 +254,7 @@ var ChannelBaseURLs = []string{ "https://open.bigmodel.cn", // 16 "https://dashscope.aliyuncs.com", // 17 "", // 18 - "https://ai.360.cn", // 19 + "https://api.360.cn", // 19 "https://openrouter.ai/api", // 20 "https://api.aiproxy.io", // 21 "https://fastgpt.run/api/openapi", // 22 diff --git a/common/model-ratio.go b/common/model-ratio.go index 4f7b9b79..fff2ebca 100644 --- a/common/model-ratio.go +++ b/common/model-ratio.go @@ -150,6 +150,7 @@ var defaultModelRatio = map[string]float64{ "360gpt-turbo": 0.0858, // ¥0.0012 / 1k tokens "360gpt-turbo-responsibility-8k": 0.8572, // ¥0.012 / 1k tokens "360gpt-pro": 0.8572, // ¥0.012 / 1k tokens + "360gpt2-pro": 0.8572, // ¥0.012 / 1k tokens "embedding-bert-512-v1": 0.0715, // ¥0.001 / 1k tokens "embedding_s1_v1": 0.0715, // ¥0.001 / 1k tokens "semantic_similarity_s1_v1": 0.0715, // ¥0.001 / 1k tokens diff --git a/relay/channel/ai360/constants.go b/relay/channel/ai360/constants.go index 824231d2..4b09dd56 100644 --- a/relay/channel/ai360/constants.go +++ b/relay/channel/ai360/constants.go @@ -4,6 +4,7 @@ var ModelList = []string{ "360gpt-turbo", "360gpt-turbo-responsibility-8k", "360gpt-pro", + "360gpt2-pro", "360GPT_S2_V9", "embedding-bert-512-v1", "embedding_s1_v1",