Skip to content
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

Add content from links to context #4

Open
Konard opened this issue Mar 7, 2024 · 2 comments
Open

Add content from links to context #4

Konard opened this issue Mar 7, 2024 · 2 comments

Comments

@Konard
Copy link
Member

Konard commented Mar 7, 2024

We can start by supporting only files with text/plain MIME type.

@Konard
Copy link
Member Author

Konard commented Mar 24, 2024

Together with @Tand-Anthros we found that Copilot and Bind from Microsoft cannot go to links from GitHub.

@Konard
Copy link
Member Author

Konard commented Apr 25, 2024

Example in telegram bot:
https://github.com/deep-foundation/russian-laws-bot/blob/6c176bc44b03bb6d57a66d79665f34c05d729d2a/main.py#L165-L168

The place in code that should be updated:

if (message.reference) {
const replyToMessageId = message.reference.messageID;
console.log({replyToMessageId});
const replyToMessage = await message.fetchReference();
const replyText = replyToMessage.content;
console.log({replyText});
messageContent = `${replyToMessage.content}
---
${message.content}`;
} else {
messageContent = message.content
console.log({messageContent})
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant