diff options
| author | Ben Sima <ben@bensima.com> | 2025-12-13 00:35:24 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-12-13 00:35:24 -0500 |
| commit | 4ff40843e7a6801b7785bfff7f4e9e8fff4e27d4 (patch) | |
| tree | 6b41438d0726f96746697af0584ab2f2542ffabf /Omni/Agent/Telegram | |
| parent | 817bdb1f33e9825946a2da2aa1ff8f91b6166366 (diff) | |
telegram: fix parsing, add webpage reader, use gemini
- Fix Provider.hs to strip leading whitespace from OpenRouter responses
- Fix FunctionCall parser to handle missing 'arguments' field
- Use eitherDecode for better error messages on parse failures
- Switch to claude-sonnet-4.5 for main agent
- Use gemini-2.0-flash for conversation summarization (cheaper)
- Add read_webpage tool for fetching and summarizing URLs
- Add tagsoup to Haskell deps (unused, kept for future)
Diffstat (limited to 'Omni/Agent/Telegram')
| -rw-r--r-- | Omni/Agent/Telegram/Media.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Omni/Agent/Telegram/Media.hs b/Omni/Agent/Telegram/Media.hs index 1ef35de..137d7d3 100644 --- a/Omni/Agent/Telegram/Media.hs +++ b/Omni/Agent/Telegram/Media.hs @@ -239,7 +239,7 @@ analyzeImage apiKey imageBytes userPrompt = do else userPrompt <> "\n\n(describe objectively in third person, no first person pronouns)" body = Aeson.object - [ "model" .= ("anthropic/claude-sonnet-4" :: Text), + [ "model" .= ("anthropic/claude-sonnet-4.5" :: Text), "messages" .= [ Aeson.object [ "role" .= ("user" :: Text), |
