feat: DeepSeek provider support and Telegram reply threading with edit-in-place tool status#45
Merged
Conversation
- Register DeepSeek in the shared provider registry with model prefixes, env key, default base URL/model, and pricing - Route 'deepseek' through OpenAIProvider with the DeepSeek base URL - Surface DeepSeek in provider-config env sync, prisma seed, the interactive installer, .env.example, and README provider docs - Mark Gemini and Kimi as Available in the README provider table
- Add reply_to_mode (off/first/all, default first) to the Telegram adapter, mapping the inbound message id to reply_parameters with allow_sending_without_reply for resilience - Type outbound metadata via OutboundMessageMetadata and thread replyToMessageId from the message router on all response sends - Change ChannelAdapter.sendMessage to return the platform message id and add optional editMessage; Telegram implements it via editMessageText with MarkdownV2/plain-text fallbacks - Consolidate consecutive tool-progress bubbles in the router by editing one status message in place, falling back to fresh sends for adapters without editMessage (web, WhatsApp)
enkizan
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DeepSeek as a first-class provider
DEEPSEEK_API_KEY, default base URL/model, pricing)deepseekthroughOpenAIProviderwith the DeepSeek base URL.env.example, and README docs (also marks Gemini/Kimi as Available)Telegram reply threading + edit-in-place tool status
reply_to_modechannel config (off/first/all, defaultfirst) — outbound responses thread back to the user's original message viareply_parameters, withallow_sending_without_replyfor resilience when the anchor is deletedChannelAdapter.sendMessagenow returns the platform message id; new optionaleditMessageimplemented by Telegram (editMessageTextwith MarkdownV2/plain-text fallbacks)editMessage(web, WhatsApp) transparently fall back to appending new messagesOutboundMessageMetadata