ai
The ai
command is used to access ChatGPT-like AI models from Yantra Launcher.
Syntax
ai [message/reset]
Setup
To use the ai
command, you need 2 things:
- An AI provider, and
- An API Key
- (Optional) System prompt
An AI provider is a service that follows the OpenAI API Reference. Although you can use the ChatGPT API directly, keep in mind that it is a paid service.
Note
There are numerous free AI API providers that are compatible with the command as they follow the OpenAI standard. Some examples include NagaAI and Zukijourney.
The API Key is provided by the respective AI Service provider. The System Prompt is a type of instruction given to the AI model to follow for the entire conversation. Try playing with it to get interesting responses. Enter all these in the page opening by using the settings
command.
Try out a simple message like
ai hi
Usage
Now you can have a great conversation with your AI assistant right from your home screen!
ai why should i use a command line launcher?
ai reset
command to clear the conversation history from Yantra Launcher
Warning
Keep in mind that the API you are using is charged by your provider based on the tokens used. The more you chat with ai
, the more tokens are used as the entire conversation is being evaluated by the model. So, to keep usage minimum, consider using the ai reset
command to clear the conversation history from Yantra Launcher when you no longer need the model to remember past conversations.