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
b2597206
authored
Aug 07, 2025
by
RedwindA
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a typo in comment
parent
d6dea7d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
controller/channel.go
+1
-1
No files found.
controller/channel.go
View file @
b2597206
...
...
@@ -184,7 +184,7 @@ func FetchUpstreamModels(c *gin.Context) {
switch
channel
.
Type
{
case
constant
.
ChannelTypeGemini
:
// curl https://example.com/v1beta/models?key=$GEMINI_API_KEY
url
=
fmt
.
Sprintf
(
"%s/v1beta/openai/models"
,
baseURL
)
// Rem
ember
key in url since we need to use AuthHeader
url
=
fmt
.
Sprintf
(
"%s/v1beta/openai/models"
,
baseURL
)
// Rem
ove
key in url since we need to use AuthHeader
case
constant
.
ChannelTypeAli
:
url
=
fmt
.
Sprintf
(
"%s/compatible-mode/v1/models"
,
baseURL
)
default
:
...
...
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