You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Inspired by #464, I'd like to suggest custom slash-commands defined in the env (on model level and/or global level), that will be expanded to prompt text, maybe using handlebars templates. This could also be useful in the future for inserting user-defined prompts by a shortname or calling agents (#462), made even easier with some kind of autocompletion.
Suggestions and improvements of this proposal are very welcome!
Example:
CHAT_COMMANDS=`[
{
"command": "news",
"description": "Get a summary of the latest news.",
"type": "text",
"content": "Please summarize today's news.",
"features": {
"websearch": true// temporarily enable websearch feature
}
}, {
"command": "words-starting-with",
"description": "Get words starting with your favorite letter.",
"min_args": 1,
"type": "template",
"content": "Find {{#if args[1]}}{{args[1]}}{{else}}5{{/if}} words starting with {{args[0]}}"
}
]`
Usage example for Command 1: /news
Usage example for Command 2: /words-starting-with a
Additional Proposal: Prompts from external APIs
In building upon the previous feature concept, a future enhancement is proposed to allow commands to trigger API requests, thereby enabling completely dynamic prompt generation based on external data or services. This would significantly increase the versatility and interactivity of the commands.
The text was updated successfully, but these errors were encountered:
secondtruth
changed the title
Feature Request: Custom slash-commands
[Feature Request] Custom /commands in chat
Dec 15, 2023
secondtruth
changed the title
[Feature Request] Custom /commands in chat
[Feature Request] Custom /commands in chat that expand to pr
Mar 19, 2024
secondtruth
changed the title
[Feature Request] Custom /commands in chat that expand to pr
[Feature Request] Chat: Custom /commands expanding to prompts
Mar 19, 2024
Inspired by #464, I'd like to suggest custom slash-commands defined in the env (on model level and/or global level), that will be expanded to prompt text, maybe using handlebars templates. This could also be useful in the future for inserting user-defined prompts by a shortname or calling agents (#462), made even easier with some kind of autocompletion.
Suggestions and improvements of this proposal are very welcome!
Example:
/news
/words-starting-with a
Additional Proposal: Prompts from external APIs
In building upon the previous feature concept, a future enhancement is proposed to allow commands to trigger API requests, thereby enabling completely dynamic prompt generation based on external data or services. This would significantly increase the versatility and interactivity of the commands.
Example:
/do-request 1, 2
The text was updated successfully, but these errors were encountered: