-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add Extra Multimedia Support for Telegram Client #1837
feat: Add Extra Multimedia Support for Telegram Client #1837
Conversation
* 'develop' of github.com:elizaOS/eliza: (478 commits) chore: bump version to v.0.1.7 fix: generatioon tests for trimTokens chore: install with no frozen-lockfile flag Revert "fix(postgres): Handle vector extension creation properly (elizaOS#1561)" chore: remove unused import and var Removed FerePro plugin fix: line break handling in chat fix: handle env using runtime getSetting function feat: add validation to trimTokens feat: add JsDoc to trimTokens function Move encoding into try block to handle potential errors during model encoding. fall back if unsupported type fix(client): improve Windows compatibility for Vite dev server remove tokenizer service clean code restore test clean code move trimTokens to core feat: add Serbian README translation and enhance main README with new features and setup instructions use elizaLogger ...
- default every other mediaType to document except audio, image, video
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Telegram client code looks good to me overall. I’ve left a few small change requests. Could you also provide a screenshot showing each type of media being successfully sent by the client? Lastly, could you please remove the sui plugin in this PR, as it doesn’t appear to be related? Thank you!
@@ -660,7 +661,7 @@ export class MessageManager { | |||
this.runtime.character.templates | |||
?.telegramShouldRespondTemplate || | |||
this.runtime.character?.templates?.shouldRespondTemplate || | |||
composeRandomUser(telegramShouldRespondTemplate, 2), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you clarify the reasoning behind removing the composeRandomUser
function? I'm curious about the context for this change and whether there's an alternative approach we should be using.
} | ||
}); | ||
} else { | ||
const chunks = this.splitMessage(content.text); | ||
const sentMessages: Message.TextMessage[] = []; | ||
|
||
for (let i = 0; i < chunks.length; i++) { | ||
const chunk = escapeMarkdown(chunks[i]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you clarify the reasoning behind removing the escapeMarkdown
function?
It's been remade with: #2510 |
Relates to
Risks
Background
What does this PR do?
Adds more multimedia support to tg client. video, audio, and documents
What kind of change is this?
Features (non-breaking change which adds functionality)
Documentation changes needed?
Testing
Where should a reviewer start?
Detailed testing steps
Discord username
@em.eieiron