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
0edba57b
authored
Jun 21, 2024
by
CalciumIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: try to fix hunyuan (close #303)
parent
54a20bd9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
relay/channel/tencent/dto.go
+1
-0
relay/channel/tencent/relay-tencent.go
+1
-0
No files found.
relay/channel/tencent/dto.go
View file @
0edba57b
...
...
@@ -31,6 +31,7 @@ type TencentChatRequest struct {
// Messages 会话内容, 长度最多为40, 按对话时间从旧到新在数组中排列
// 输入 content 总数最大支持 3000 token。
Messages
[]
TencentMessage
`json:"messages"`
Model
string
`json:"model"`
// 模型名称
}
type
TencentError
struct
{
...
...
relay/channel/tencent/relay-tencent.go
View file @
0edba57b
...
...
@@ -54,6 +54,7 @@ func requestOpenAI2Tencent(request dto.GeneralOpenAIRequest) *TencentChatRequest
TopP
:
request
.
TopP
,
Stream
:
stream
,
Messages
:
messages
,
Model
:
request
.
Model
,
}
}
...
...
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