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
17c4108d
authored
Jul 29, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: prompt user that channel test is unavailable
parent
bd80f77f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
controller/channel-test.go
+2
-0
No files found.
controller/channel-test.go
View file @
17c4108d
...
...
@@ -23,6 +23,8 @@ func testChannel(channel *model.Channel, request ChatRequest) (error, *OpenAIErr
case
common
.
ChannelTypeBaidu
:
fallthrough
case
common
.
ChannelTypeZhipu
:
fallthrough
case
common
.
ChannelTypeXunfei
:
return
errors
.
New
(
"该渠道类型当前版本不支持测试,请手动测试"
),
nil
case
common
.
ChannelTypeAzure
:
request
.
Model
=
"gpt-35-turbo"
...
...
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