Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
coderai
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
coderai
Commits
4a45f2f1
Commit
4a45f2f1
authored
Mar 18, 2026
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more debug logging to model resolution
parent
f69d5798
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
utils.py
codai/models/utils.py
+4
-0
No files found.
codai/models/utils.py
View file @
4a45f2f1
...
@@ -105,6 +105,8 @@ def get_resolved_model_name(requested_model: str, current_manager = None) -> str
...
@@ -105,6 +105,8 @@ def get_resolved_model_name(requested_model: str, current_manager = None) -> str
Handles aliases and ensures the correct model identifier is returned.
Handles aliases and ensures the correct model identifier is returned.
"""
"""
print
(
f
"DEBUG resolve: START - requested={requested_model}, has manager={current_manager is not None}"
)
global_args
=
get_global_args
()
global_args
=
get_global_args
()
# Get model aliases from args if available
# Get model aliases from args if available
...
@@ -112,10 +114,12 @@ def get_resolved_model_name(requested_model: str, current_manager = None) -> str
...
@@ -112,10 +114,12 @@ def get_resolved_model_name(requested_model: str, current_manager = None) -> str
# If it's an alias, return the resolved name
# If it's an alias, return the resolved name
if
requested_model
in
model_aliases
:
if
requested_model
in
model_aliases
:
print
(
f
"DEBUG resolve: found alias: {model_aliases[requested_model]}"
)
return
model_aliases
[
requested_model
]
return
model_aliases
[
requested_model
]
# Try to get from current manager if available
# Try to get from current manager if available
if
current_manager
is
not
None
:
if
current_manager
is
not
None
:
print
(
f
"DEBUG resolve: has models={hasattr(current_manager, 'models')}"
)
# Check if the model is loaded in the manager
# Check if the model is loaded in the manager
if
hasattr
(
current_manager
,
'models'
)
and
current_manager
.
models
:
if
hasattr
(
current_manager
,
'models'
)
and
current_manager
.
models
:
# If requested_model is "default" or empty, get the actual loaded model
# If requested_model is "default" or empty, get the actual loaded model
...
...
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