ai / docs /API.md
hadadrjt's picture
ai: Goodbye multi-platform support.
975341b
|
raw
history blame
1.19 kB
#### Installations
```bash
# Linux/Android (Termux)/MacOS/Windows.
# Make sure you have "wget", "python3" and "pip" installed.
# This package have very small size.
wget https://huggingface.co/spaces/hadadrjt/ai/raw/main/assets/bin/install.sh && chmod a+x install.sh && ./install.sh
```
#### Run J.A.R.V.I.S. in your terminal
```bash
# Example normal usage.
./ai Your message here.
# Example with Deep Search.
./ai -d Your message here.
```
#### Linux user's
```bash
# Bonus for more flexible.
sudo mv ai /bin/
# Now you can run with simple command.
ai Your message here.
```
### OpenAI Style (developers only)
If you are using the OpenAI style, there is no need to install all the processes mentioned above.
```
curl https://hadadrjt-api.hf.space/v1/responses \
-H "Content-Type: application/json" \
-d '{
"model": "JARVIS: 2.1.3",
"input": "Write a one-sentence bedtime story about a unicorn.",
"stream": true
}'
```
This is a powerful solution for integration with various systems and software, including building your own chatbot. No API key is required.
```
# Endpoint
# See at https://huggingface.co/spaces/hadadrjt/api
https://hadadrjt-api.hf.space/v1
```