20 Commits

Author SHA1 Message Date
owen dcf10d85b3 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 89c96259fa 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 b81f3429d4 Add vision model support: auto-switch on image detection, visionmodel command 2026-08-17 00:40:04 -05:00
kingston 71d71b4773 Add showprompt command (admin only) to display full system prompt 2026-08-16 23:51:38 -05:00
kingston 58b1c85bcb Add reasoning command to control reasoning_effort per guild 2026-08-16 23:49:15 -05:00
kingston 28abf4aced Add reasoning_effort: none to prevent empty content from reasoning models 2026-08-16 23:48:03 -05:00
kingston d959d18f41 Fix models sort (by output cost), filter non-chat models, add compression variants 2026-08-16 23:45:23 -05:00
kingston 7eb96c6e65 Remove reasoning_content fallback - don't expose internal thinking 2026-08-16 23:43:15 -05:00
kingston a5c5d29ded Handle DeepSeek reasoning_content fallback for empty responses 2026-08-16 23:27:56 -05:00
kingston 1217bfae67 Debug: show raw API response when empty 2026-08-16 23:26:13 -05:00
kingston 8287efae0d Handle empty API responses gracefully 2026-08-16 23:22:47 -05:00
kingston c0ef8d0e4e Add maxlength command to set max response tokens 2026-08-16 23:21:10 -05:00
kingston ca541c2e82 Fix API URL (api.greenpt.ai), add models command, remove debug logging 2026-08-16 23:07:29 -05:00
kingston 4028f8ef20 Debug: use log.info for visible console output 2026-08-16 23:04:25 -05:00
kingston 3d5a207b13 Fix: remove strict TextChannel check, broaden channel support 2026-08-16 23:03:55 -05:00
kingston ab0a72b660 Debug: add reaction indicators to trace on_message 2026-08-16 23:01:04 -05:00
kingston e72dc8ecbd Add debug logging to on_message listener 2026-08-16 22:58:09 -05:00
kingston 71b70c3ba1 Fix setkey: use button+modal instead of ctx.send_modal 2026-08-16 22:55:02 -05:00
kingston 3e1300112a Fix command group: use @commands.group decorator instead of Group() 2026-07-31 20:48:48 -05:00
kingston 7fa85d7dd9 Rename greeptchat cog to assistant - generic AI chatbot branding 2026-07-31 20:41:40 -05:00