Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
192fc094
authored
Dec 02, 2024
by
Benny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 360智能接口地址更新
parent
191ebac4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
+4
-2
README.md
+1
-1
common/constants.go
+1
-1
common/model-ratio.go
+1
-0
relay/channel/ai360/constants.go
+1
-0
No files found.
README.md
View file @
192fc094
...
...
@@ -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)
...
...
common/constants.go
View file @
192fc094
...
...
@@ -254,7 +254,7 @@ var ChannelBaseURLs = []string{
"https://open.bigmodel.cn"
,
// 16
"https://dashscope.aliyuncs.com"
,
// 17
""
,
// 18
"https://ai.360.cn"
,
// 19
"https://a
p
i.360.cn"
,
// 19
"https://openrouter.ai/api"
,
// 20
"https://api.aiproxy.io"
,
// 21
"https://fastgpt.run/api/openapi"
,
// 22
...
...
common/model-ratio.go
View file @
192fc094
...
...
@@ -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
...
...
relay/channel/ai360/constants.go
View file @
192fc094
...
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment