Hey All,
I’m making a plugin that occasionally doesn’t really need to transform data once it gets it. For example, URLs don’t really need to get processed through the model. More importantly, they waste a lot of tokens as many URLs have unique identifiers. So, I’m wondering if there is a feature that can inject content directly into the conversation.
I’m sure this could be useful in other cases where users are looking for exact content in a document and just need the quote ripped out. Again though, the bot doesn’t really need to process that type of data if the user wants it exactly as is. So I’m wondering if there is a method of doing this type of direct injection. Maybe there is a template style variable like {{content[0]}}?
Just wondering. As a solid example:
User: Please list all of the urls in my discord messages from April.
Bot: April 1st: [UFOs sighted over whitehouse!]({{var1}})
April 16th: [Happy Birthday Old Man!]({{var2}})
That is basically the essence of what I am trying to do. But you can only do like 8 links because they take up all of the tokens. So my thinking was, it doesn’t really need to be tokenized, I can just inject it if there was a method for it.
Thanks in advance.