-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
[Enhancement] - Using different prompts to signify which model to choose is strange. #3
Comments
You could create a custom model to achieve this functionality. Creating a Custom ModelTo create a custom model, you need to add a new field in models.
{
modelName: "your_model_name",
prefix: "!your_prefix",
enable: true,
context: "your_context" | "path to file (.md,.txt)" | "url",
} Test your model
Demo
Hey GPT, if the provided question seems to be asking for an image then just return the question with the prefix !dalle otherwise return the question with the prefix !chatgpt
Examples:-
question:
Generate an image of a black cat with light green eyes
you should return => !dalle Generate an image of a black cat with light green eyes
question:
what is HTTP?
you should return => !chatgpt what is HTTP?
Example End.
ResultsNote! Although this approach will work. But, there is an overhead check this diagram how this process is working. See more about how the custom model works under the hood Apart from that, To achieve this kind of functionality we need to use an NLP model on the server side which may slow down the response. Maybe in the future, I plan to use a custom
Another option is: Google is releasing a new AI model |
error /root/WhatsApp-Ai-bot/node_modules/whatsapp-web.js/node_modules/puppeteer: Command failed. sudo apt install chromium sudo apt install chromium-browser /root/WhatsApp-Ai-bot/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserFetcher.js:119 Error Node.js v22.3. How to solve it? |
move this discussion here |
You can make a single prompt and let your model choose which model will suit this input text.
Input
!bot Generate an image of a black cat with light green eyes
Output
Input
!bot what is HTTP?
Output
HTTP stands for Hypertext Transfer Protocol, which is a protocol used to transfer data over the internet. It is a standard application layer protocol that defines how data is transmitted between web servers and web browsers.
The text was updated successfully, but these errors were encountered: