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
712972e7
Commit
712972e7
authored
Apr 21, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix user models endpoint: missing import and AutoselectHandler list iteration
parent
13bb02aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
handlers.py
aisbf/handlers.py
+4
-4
main.py
main.py
+1
-0
No files found.
aisbf/handlers.py
View file @
712972e7
...
@@ -3865,8 +3865,8 @@ class AutoselectHandler:
...
@@ -3865,8 +3865,8 @@ class AutoselectHandler:
self
.
_load_user_configs
()
self
.
_load_user_configs
()
# Override config to only use user-specific configs with NO global fallback
# Override config to only use user-specific configs with NO global fallback
self
.
autoselects
=
{}
self
.
autoselects
=
{}
for
autoselect
_id
,
autoselect_config
in
self
.
user_autoselects
.
items
()
:
for
autoselect
in
self
.
user_autoselects
:
self
.
autoselects
[
autoselect
_id
]
=
autoselect_config
self
.
autoselects
[
autoselect
[
'autoselect_id'
]]
=
autoselect
[
'config'
]
else
:
else
:
self
.
user_providers
=
{}
self
.
user_providers
=
{}
self
.
user_rotations
=
{}
self
.
user_rotations
=
{}
...
@@ -3887,8 +3887,8 @@ class AutoselectHandler:
...
@@ -3887,8 +3887,8 @@ class AutoselectHandler:
self
.
_load_user_configs
()
self
.
_load_user_configs
()
# Refresh autoselects dict after reload
# Refresh autoselects dict after reload
self
.
autoselects
=
{}
self
.
autoselects
=
{}
for
autoselect
_id
,
autoselect_config
in
self
.
user_autoselects
.
items
()
:
for
autoselect
in
self
.
user_autoselects
:
self
.
autoselects
[
autoselect
_id
]
=
autoselect_config
self
.
autoselects
[
autoselect
[
'autoselect_id'
]]
=
autoselect
[
'config'
]
def
_get_skill_file_content
(
self
)
->
str
:
def
_get_skill_file_content
(
self
)
->
str
:
"""Load the autoselect.md skill file content"""
"""Load the autoselect.md skill file content"""
...
...
main.py
View file @
712972e7
...
@@ -10522,6 +10522,7 @@ async def user_list_models_by_username(request: Request, username: str):
...
@@ -10522,6 +10522,7 @@ async def user_list_models_by_username(request: Request, username: str):
handler
=
get_user_handler
(
'request'
,
target_user_id
)
handler
=
get_user_handler
(
'request'
,
target_user_id
)
# Add user providers - fetch live models from each provider API
# Add user providers - fetch live models from each provider API
from
aisbf.providers
import
get_provider_handler
for
provider_id
,
provider_config
in
handler
.
user_providers
.
items
():
for
provider_id
,
provider_config
in
handler
.
user_providers
.
items
():
try
:
try
:
# Get provider handler for this user provider
# Get provider handler for this user provider
...
...
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