#3037 add: setting of backend settings and allow reloading of the UI

Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
This commit is contained in:
Patrizio Bekerle 2024-06-12 19:54:04 +02:00
parent ecc48539f1
commit b0d309a8b4
4 changed files with 47 additions and 5 deletions

View file

@ -8,10 +8,18 @@ Script {
function openAiBackendsHook() {
const result = [
{
"id": "my-custom-ai"
"id": "my-custom-ai",
"name": "My Custom AI12",
"baseUrl": "http://localhost:5000",
"apiKey": "kDFJkjk3asdm",
"models": ["gpt-3.5-turbo", "gpt-4.0-turbo"],
},
{
"id": "my-custom-ai2"
"id": "my-custom-ai2",
"name": "My Custom AI 2",
"baseUrl": "http://localhost:5001",
"apiKey": "lOikf7eNdb9",
"models": ["gpt-3.5-turbo2", "gpt-4.0-turbo2"],
}
];