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
32b55111
Commit
32b55111
authored
May 17, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Coderai... again
parent
efecd1ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
coderai.py
aisbf/providers/coderai.py
+5
-1
No files found.
aisbf/providers/coderai.py
View file @
32b55111
...
...
@@ -505,7 +505,11 @@ class CoderAIProviderHandler(BaseProviderHandler):
message
=
await
self
.
_broker_request
(
"models.list"
,
{},
timeout
=
self
.
_model_timeout
)
if
(
message
.
get
(
"status"
)
or
"ok"
)
==
"error"
:
raise
Exception
(
message
.
get
(
"error"
)
or
"CoderAI broker model discovery failed"
)
return
self
.
_extract_models
(
self
.
_unwrap_broker_body
(
message
.
get
(
"payload"
)
or
{}))
http_payload
=
message
.
get
(
"payload"
)
or
{}
http_status
=
http_payload
.
get
(
"status_code"
,
200
)
if
isinstance
(
http_status
,
int
)
and
http_status
>=
400
:
raise
Exception
(
f
"CoderAI model discovery failed: HTTP {http_status} from remote"
)
return
self
.
_extract_models
(
self
.
_unwrap_broker_body
(
http_payload
))
if
self
.
_is_direct_websocket_mode
():
message
=
await
self
.
_ws_roundtrip
(
"models.list"
,
{},
timeout
=
self
.
_model_timeout
)
if
(
message
.
get
(
"status"
)
or
"ok"
)
==
"error"
:
...
...
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