From 572fc9ffb8b2ccf47efacaa8f311e0810c45e736 Mon Sep 17 00:00:00 2001 From: JustSong Date: Sat, 6 Apr 2024 10:43:54 +0800 Subject: [PATCH] fix: fix stepfun model ratio & id --- relay/billing/ratio/model.go | 4 ++++ web/default/src/constants/channel.constants.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/relay/billing/ratio/model.go b/relay/billing/ratio/model.go index e98c5be8..108924a1 100644 --- a/relay/billing/ratio/model.go +++ b/relay/billing/ratio/model.go @@ -154,6 +154,10 @@ var ModelRatio = map[string]float64{ "yi-34b-chat-0205": 2.5 / 1000 * RMB, "yi-34b-chat-200k": 12.0 / 1000 * RMB, "yi-vl-plus": 6.0 / 1000 * RMB, + // stepfun todo + "step-1v-32k": 0.024 * RMB, + "step-1-32k": 0.024 * RMB, + "step-1-200k": 0.15 * RMB, } var CompletionRatio = map[string]float64{} diff --git a/web/default/src/constants/channel.constants.js b/web/default/src/constants/channel.constants.js index 2bf53c81..7535b666 100644 --- a/web/default/src/constants/channel.constants.js +++ b/web/default/src/constants/channel.constants.js @@ -17,7 +17,7 @@ export const CHANNEL_OPTIONS = [ { key: 29, text: 'Groq', value: 29, color: 'orange' }, { key: 30, text: 'Ollama', value: 30, color: 'black' }, { key: 31, text: '零一万物', value: 31, color: 'green' }, - { key: 31, text: '阶跃星辰', value: 32, color: 'blue' }, + { key: 32, text: '阶跃星辰', value: 32, color: 'blue' }, { key: 8, text: '自定义渠道', value: 8, color: 'pink' }, { key: 22, text: '知识库:FastGPT', value: 22, color: 'blue' }, { key: 21, text: '知识库:AI Proxy', value: 21, color: 'purple' },