Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
aisbf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
aisbf
Commits
26a52d9f
Commit
26a52d9f
authored
May 12, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gain reordering
parent
fe509751
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
23 deletions
+13
-23
providers.py
aisbf/routes/dashboard/providers.py
+13
-23
No files found.
aisbf/routes/dashboard/providers.py
View file @
26a52d9f
...
@@ -463,17 +463,7 @@ async def dashboard_providers(request: Request):
...
@@ -463,17 +463,7 @@ async def dashboard_providers(request: Request):
broker_status_map
=
await
_load_coderai_broker_status_map
()
broker_status_map
=
await
_load_coderai_broker_status_map
()
if
is_config_admin
:
if
is_config_admin
:
# Config admin: prefer live in-memory config when available
# Config admin: read provider order from the saved JSON file
live_config
=
_config
if
live_config
is
None
:
from
aisbf.config
import
config
as
global_config
live_config
=
global_config
if
live_config
and
getattr
(
live_config
,
'providers'
,
None
):
providers_data
=
{
provider_id
:
(
provider
.
model_dump
()
if
hasattr
(
provider
,
'model_dump'
)
else
dict
(
provider
))
for
provider_id
,
provider
in
live_config
.
providers
.
items
()
}
else
:
config_path
=
Path
.
home
()
/
'.aisbf'
/
'providers.json'
config_path
=
Path
.
home
()
/
'.aisbf'
/
'providers.json'
if
not
config_path
.
exists
():
if
not
config_path
.
exists
():
config_path
=
Path
(
__file__
)
.
parent
/
'config'
/
'providers.json'
config_path
=
Path
(
__file__
)
.
parent
/
'config'
/
'providers.json'
...
...
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