mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 08:32:41 +00:00
Thanks, Ollama.
Replace flat 'LLM might be offline' error strings in vibe and howami with the deadpan 'Thanks, Ollama.' callback. Skipped tarot — its 'union-mandated vacation' line was already the right register and shouldn't be displaced. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -87,7 +87,7 @@ Write the roast now. Do not include any preamble or explanation, just the roast
|
||||
response, err := callOllama(ollamaHost, ollamaModel, prompt)
|
||||
if err != nil {
|
||||
slog.Error("howami: ollama call", "err", err)
|
||||
p.SendReply(ctx.RoomID, ctx.EventID, "Failed to generate profile. LLM might be offline.")
|
||||
p.SendReply(ctx.RoomID, ctx.EventID, "Couldn't generate the profile. Thanks, Ollama.")
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@ Describe the room's current vibe:`, botName, transcript)
|
||||
if err != nil {
|
||||
slog.Error("vibe: ollama call", "err", err)
|
||||
p.resetCooldown(ctx.RoomID) // Don't consume cooldown on failure
|
||||
return p.SendReply(ctx.RoomID, ctx.EventID, "Failed to read the vibe. LLM might be offline.")
|
||||
return p.SendReply(ctx.RoomID, ctx.EventID, "Failed to read the vibe. Thanks, Ollama.")
|
||||
}
|
||||
|
||||
return p.SendMessage(ctx.RoomID, response)
|
||||
@@ -203,7 +203,7 @@ Summary:`, tldrBotName, transcript)
|
||||
if err != nil {
|
||||
slog.Error("vibe: ollama call", "err", err)
|
||||
p.resetCooldown(ctx.RoomID) // Don't consume cooldown on failure
|
||||
return p.SendReply(ctx.RoomID, ctx.EventID, "Failed to summarize. LLM might be offline.")
|
||||
return p.SendReply(ctx.RoomID, ctx.EventID, "Couldn't summarize. Thanks, Ollama.")
|
||||
}
|
||||
|
||||
return p.SendMessage(ctx.RoomID, response)
|
||||
|
||||
Reference in New Issue
Block a user