b089c0f6 by Jonille Arreglo

27190_loggedin

2 parents ec5556d8 8df6621a
......@@ -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)
})
......
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
......@@ -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'));
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!