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
911e59c3
authored
May 20, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: support channel AI Proxy now
parent
a241c5a6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
README.md
+1
-0
common/constants.go
+2
-0
web/src/constants/channel.constants.js
+3
-2
No files found.
README.md
View file @
911e59c3
...
...
@@ -51,6 +51,7 @@ _✨ All in one 的 OpenAI 接口,整合各种 API 访问方式,开箱即用
+
[
x
]
**Azure OpenAI API**
+
[
x
]
[
API2D
]
(https://api2d.com/r/197971)
+
[
x
]
[
OhMyGPT
]
(https://aigptx.top?aff=uFpUl2Kf)
+
[
x
]
[
AI Proxy
]
(https://aiproxy.io/?i=OneAPI)
+
[
x
]
[
AI.LS
]
(https://ai.ls)
+
[
x
]
[
OpenAI Max
]
(https://openaimax.com)
+
[
x
]
[
OpenAI-SB
]
(https://openai-sb.com)
...
...
common/constants.go
View file @
911e59c3
...
...
@@ -128,6 +128,7 @@ const (
ChannelTypeOhMyGPT
=
7
ChannelTypeCustom
=
8
ChannelTypeAILS
=
9
ChannelTypeAIProxy
=
10
)
var
ChannelBaseURLs
=
[]
string
{
...
...
@@ -141,4 +142,5 @@ var ChannelBaseURLs = []string{
"https://api.ohmygpt.com"
,
// 7
""
,
// 8
"https://api.caipacity.com"
,
// 9
"https://api.aiproxy.io"
,
// 10
}
web/src/constants/channel.constants.js
View file @
911e59c3
export
const
CHANNEL_OPTIONS
=
[
{
key
:
1
,
text
:
'OpenAI'
,
value
:
1
,
color
:
'green'
},
{
key
:
2
,
text
:
'API2D'
,
value
:
2
,
color
:
'blue
'
},
{
key
:
8
,
text
:
'自定义'
,
value
:
8
,
color
:
'pink
'
},
{
key
:
3
,
text
:
'Azure'
,
value
:
3
,
color
:
'olive'
},
{
key
:
2
,
text
:
'API2D'
,
value
:
2
,
color
:
'blue'
},
{
key
:
4
,
text
:
'CloseAI'
,
value
:
4
,
color
:
'teal'
},
{
key
:
5
,
text
:
'OpenAI-SB'
,
value
:
5
,
color
:
'brown'
},
{
key
:
6
,
text
:
'OpenAI Max'
,
value
:
6
,
color
:
'violet'
},
{
key
:
7
,
text
:
'OhMyGPT'
,
value
:
7
,
color
:
'purple'
},
{
key
:
9
,
text
:
'AI.LS'
,
value
:
9
,
color
:
'yellow'
},
{
key
:
8
,
text
:
'自定义'
,
value
:
8
,
color
:
'pink
'
}
{
key
:
10
,
text
:
'AI Proxy'
,
value
:
10
,
color
:
'purple
'
}
];
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