20 Commits

Author SHA1 Message Date
kingston 55fe064fe8 assistant: reply 'images not supported' and skip images
The cog's vision_model defaulted to the text-only llama3.2:3b, so any image in
the message/reply was sent to a non-vision model, causing Ollama 400 'invalid
image input'. Now the bot tells the user images aren't supported and continues
with text-only, preserving normal chat.
2026-09-22 23:02:09 -05:00
kingston eb8ab66a8c assistant: add local Ollama backend for the humor chatbot
Make the API base URL configurable (new global config base_url, default to the
local Ollama OpenAI-compatible endpoint http://127.0.0.1:11434/v1 on gpu1).
Local endpoints (127.0.0.1/localhost) need no API key: the on_message, _chat,
and models guards allow a missing key when local, and the Authorization header
is only sent when a key is set. Default guild model is now
llama3.2:3b-instruct-q4_K_M with a humor-focused system prompt. Adds
[p]assistant baseurl to switch endpoints (omit to reset to local), shows the
backend in settings, and raises the request timeout to 120s for local
inference. GreenPT remains usable as a fallback by setting the base URL back to
it and providing a key.

Note: Llama-3.2-3B-Instruct is text-only; the vision path needs a
vision-capable model (e.g. a local llava/llama3.2-vision) or GreenPT.
2026-09-14 18:30:31 -05:00
kingston 731983949a Add vision model support: auto-switch on image detection, visionmodel command 2026-08-17 00:40:04 -05:00
kingston d8f809f890 Add showprompt command (admin only) to display full system prompt 2026-08-16 23:51:38 -05:00
kingston 3aafef93c0 Add reasoning command to control reasoning_effort per guild 2026-08-16 23:49:15 -05:00
kingston 327b8b2fd7 Add reasoning_effort: none to prevent empty content from reasoning models 2026-08-16 23:48:03 -05:00
kingston 9fb5ecc0e7 Fix models sort (by output cost), filter non-chat models, add compression variants 2026-08-16 23:45:23 -05:00
kingston 06467d2e38 Remove reasoning_content fallback - don't expose internal thinking 2026-08-16 23:43:15 -05:00
kingston 5679134fc3 Handle DeepSeek reasoning_content fallback for empty responses 2026-08-16 23:27:56 -05:00
kingston fd76ea153b Debug: show raw API response when empty 2026-08-16 23:26:13 -05:00
kingston f29aec3d18 Handle empty API responses gracefully 2026-08-16 23:22:47 -05:00
kingston 77a044047e Add maxlength command to set max response tokens 2026-08-16 23:21:10 -05:00
kingston 0dbf154b3f Fix API URL (api.greenpt.ai), add models command, remove debug logging 2026-08-16 23:07:29 -05:00
kingston be9bb058d4 Debug: use log.info for visible console output 2026-08-16 23:04:25 -05:00
kingston b880b11ecf Fix: remove strict TextChannel check, broaden channel support 2026-08-16 23:03:55 -05:00
kingston a319feb8ff Debug: add reaction indicators to trace on_message 2026-08-16 23:01:04 -05:00
kingston e83772ea7a Add debug logging to on_message listener 2026-08-16 22:58:09 -05:00
kingston e7a86682f6 Fix setkey: use button+modal instead of ctx.send_modal 2026-08-16 22:55:02 -05:00
kingston 406858b26f Fix command group: use @commands.group decorator instead of Group() 2026-07-31 20:48:48 -05:00
kingston 7f3646745b Rename greeptchat cog to assistant - generic AI chatbot branding 2026-07-31 20:41:40 -05:00