feat(ai): improve runtime capability reporting and context settings

Add explicit chat capability tracking, expose formatted runtime capabilities
in the info command, and support a max context size option for user AI settings.

Also update Ollama base URL resolution to use OLLAMA_ADDRESS and simplify
provider chat command execution.
This commit is contained in:
2026-05-11 02:01:44 +03:00
parent d2464b9b21
commit 3848dd82d9
15 changed files with 850 additions and 336 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ export class UserSettingsCallback extends CallbackCommand {
if (parsed.screen === "contextSize" && parsed.contextSizeChoice) {
const choice = normalizeAiContextSizeChoice(parsed.contextSizeChoice);
if (choice) {
if (choice || choice === -1) {
const result = await setUserAiContextSizeChoice(query.from.id, choice);
settings = result.settings;
}