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
c2be2938
authored
Jul 29, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update prompt for xunfei
parent
11e62bb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
controller/relay-xunfei.go
+1
-1
web/src/pages/Channel/EditChannel.js
+4
-1
No files found.
controller/relay-xunfei.go
View file @
c2be2938
...
...
@@ -173,7 +173,7 @@ func buildXunfeiAuthUrl(hostUrl string, apiKey, apiSecret string) string {
return
callUrl
}
func
xunfeiStreamHandler
(
c
*
gin
.
Context
,
textRequest
GeneralOpenAIRequest
,
appId
string
,
api
Key
string
,
apiSecret
string
)
(
*
OpenAIErrorWithStatusCode
,
*
Usage
)
{
func
xunfeiStreamHandler
(
c
*
gin
.
Context
,
textRequest
GeneralOpenAIRequest
,
appId
string
,
api
Secret
string
,
apiKey
string
)
(
*
OpenAIErrorWithStatusCode
,
*
Usage
)
{
var
usage
Usage
d
:=
websocket
.
Dialer
{
HandshakeTimeout
:
5
*
time
.
Second
,
...
...
web/src/pages/Channel/EditChannel.js
View file @
c2be2938
...
...
@@ -53,6 +53,9 @@ const EditChannel = () => {
case
16
:
localModels
=
[
'chatglm_pro'
,
'chatglm_std'
,
'chatglm_lite'
];
break
;
case
18
:
localModels
=
[
'SparkDesk'
];
break
;
}
setInputs
((
inputs
)
=>
({
...
inputs
,
models
:
localModels
}));
}
...
...
@@ -347,7 +350,7 @@ const EditChannel = () => {
label
=
'密钥'
name
=
'key'
required
placeholder
=
{
inputs
.
type
===
15
?
'请输入 access token,当前版本暂不支持自动刷新,请每 30 天更新一次'
:
'请输入渠道对应的鉴权密钥'
}
placeholder
=
{
inputs
.
type
===
15
?
'请输入 access token,当前版本暂不支持自动刷新,请每 30 天更新一次'
:
(
inputs
.
type
===
18
?
'按照如下格式输入:APPID|APISecret|APIKey'
:
'请输入渠道对应的鉴权密钥'
)
}
onChange
=
{
handleInputChange
}
value
=
{
inputs
.
key
}
autoComplete
=
'new-password'
...
...
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