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
1b179862
authored
Mar 05, 2026
by
Nekohy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete some if
parent
a4629f26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
service/convert.go
+0
-2
No files found.
service/convert.go
View file @
1b179862
...
@@ -34,7 +34,6 @@ func ClaudeToOpenAIRequest(claudeRequest dto.ClaudeRequest, info *relaycommon.Re
...
@@ -34,7 +34,6 @@ func ClaudeToOpenAIRequest(claudeRequest dto.ClaudeRequest, info *relaycommon.Re
isOpenRouter
:=
info
.
ChannelType
==
constant
.
ChannelTypeOpenRouter
isOpenRouter
:=
info
.
ChannelType
==
constant
.
ChannelTypeOpenRouter
if
claudeRequest
.
Thinking
!=
nil
&&
(
claudeRequest
.
Thinking
.
Type
==
"enabled"
||
claudeRequest
.
Thinking
.
Type
==
"adaptive"
)
{
if
isOpenRouter
{
if
isOpenRouter
{
if
effort
:=
claudeRequest
.
GetEfforts
();
effort
!=
""
{
if
effort
:=
claudeRequest
.
GetEfforts
();
effort
!=
""
{
effortBytes
,
_
:=
json
.
Marshal
(
effort
)
effortBytes
,
_
:=
json
.
Marshal
(
effort
)
...
@@ -65,7 +64,6 @@ func ClaudeToOpenAIRequest(claudeRequest dto.ClaudeRequest, info *relaycommon.Re
...
@@ -65,7 +64,6 @@ func ClaudeToOpenAIRequest(claudeRequest dto.ClaudeRequest, info *relaycommon.Re
openAIRequest
.
Model
=
openAIRequest
.
Model
+
thinkingSuffix
openAIRequest
.
Model
=
openAIRequest
.
Model
+
thinkingSuffix
}
}
}
}
}
// Convert stop sequences
// Convert stop sequences
if
len
(
claudeRequest
.
StopSequences
)
==
1
{
if
len
(
claudeRequest
.
StopSequences
)
==
1
{
...
...
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