Skip to content

(FIX TO "INVALID MODEL") Convert model names to lowercase in Ai.qml #3183

Open
XChaosSaMa wants to merge 3 commits intoend-4:mainfrom
XChaosSaMa:patch-1
Open

(FIX TO "INVALID MODEL") Convert model names to lowercase in Ai.qml #3183
XChaosSaMa wants to merge 3 commits intoend-4:mainfrom
XChaosSaMa:patch-1

Conversation

@XChaosSaMa
Copy link
Copy Markdown

Fix Ollama model validation by applying safeModelName normalization and lowercasing consistently when both storing and looking up model keys, so that models with colons (e.g. phi4:latest) or mixed-case names (e.g. Qwen3-Coder-30B) are correctly recognized instead of throwing 'Invalid model'.

Fix Ollama model validation by applying safeModelName normalization and lowercasing consistently when both storing and looking up model keys, so that models with colons (e.g. phi4:latest) or mixed-case names (e.g. Qwen3-Coder-30B) are correctly recognized instead of throwing 'Invalid model'.
@end-4
Copy link
Copy Markdown
Owner

end-4 commented Apr 5, 2026

Thanks. Why not add the lowercasing to safeModelName though?

@XChaosSaMa
Copy link
Copy Markdown
Author

XD, you are right. I should have put it there from the start, I'll update the PR

@end-4
Copy link
Copy Markdown
Owner

end-4 commented Apr 5, 2026

wait why undo the setModel part

@end-4
Copy link
Copy Markdown
Owner

end-4 commented Apr 5, 2026

i think it's fine to leave the normalization there

@XChaosSaMa
Copy link
Copy Markdown
Author

My bad, i used the last file and forgot to change it back, it's fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants