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
b089c0f6
authored
2023-04-11 17:31:59 +0800
by
Jonille Arreglo
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
27190_loggedin
2 parents
ec5556d8
8df6621a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
24 deletions
client/src/App.js
client/src/handlers/appendScript.js
client/src/index.js
client/src/App.js
View file @
b089c0f
...
...
@@ -47,7 +47,9 @@ function App() {
let
model_list
=
[];
for
(
var
i
=
1
;
i
<
data
.
models
.
data
.
length
;
i
++
)
{
let
model
=
data
.
models
.
data
[
i
];
if
(
model
.
id
!=
"whisper-1"
)
model_list
.
push
(
model
);
if
(
!
(
model
.
id
==
"whisper-1"
||
model
.
id
==
"gpt-4"
||
model
.
id
==
"gpt-4-0314"
)
)
model_list
.
push
(
model
);
}
setModels
(
model_list
)
})
...
...
client/src/handlers/appendScript.js
deleted
100644 → 0
View file @
ec5556d
const
appendScript
=
(
scriptToAppend
,
callback
=
null
)
=>
{
const
script
=
document
.
createElement
(
"script"
);
script
.
src
=
scriptToAppend
;
script
.
async
=
false
;
document
.
body
.
appendChild
(
script
);
if
(
!
callback
)
return
;
if
(
script
.
readyState
)
{
// only required for IE <9
script
.
onreadystatechange
=
function
()
{
if
(
script
.
readyState
===
"loaded"
||
script
.
readyState
===
"complete"
)
{
script
.
onreadystatechange
=
null
;
callback
();
}
};
}
else
{
//Others
script
.
onload
=
function
()
{
callback
();
};
}
}
export
default
appendScript
;
\ No newline at end of file
client/src/index.js
View file @
b089c0f
...
...
@@ -2,7 +2,6 @@ import React from 'react';
import
ReactDOM
from
'react-dom/client'
;
import
'./index.css'
;
import
App
from
'./App'
;
import
appendScript
from
'./handlers/appendScript'
;
import
reportWebVitals
from
'./reportWebVitals'
;
const
root
=
ReactDOM
.
createRoot
(
document
.
getElementById
(
'root'
));
...
...
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