Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
chatgpt.ai-pro.org
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
3
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
930f8751
authored
2023-12-05 01:42:22 +0000
by
Janis
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch '28859_integrate_llm_chatbot_plus' into 'master'
remove gpt-4* See merge request
!83
2 parents
7db45447
04cd5af5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
index.js
index.js
View file @
930f875
...
...
@@ -290,6 +290,11 @@ app.get('/models', async (req, res) => {
const
response
=
await
openai
.
listEngines
();
const
models
=
response
.
data
;
const
opensource_models
=
process
.
env
.
OPENSOURCE_MODELS
?
process
.
env
.
OPENSOURCE_MODELS
.
split
(
','
)
:
[];
models
.
data
=
models
.
data
.
filter
((
model
)
=>
{
return
model
.
id
.
indexOf
(
'gpt-4'
)
<
0
})
opensource_models
.
forEach
((
model
)
=>
{
models
.
data
.
push
({
id
:
model
,
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment