|
# R
|
|
|
|
Note for the hackers: the openai api key in history of this repo is revoked. I am aware there's one. But for so far, thanks for checking it out. I feel very safe and stuff. Something about this site attracks certain people. Mostly with good intentions AFAIK.
|
|
|
|
## Downloads
|
|
It is possible that you need to install python3.14-dev to make it work!
|
|
I'm considering to remove the python support because of this or have to figure out how to link python static.
|
|
The python support is not finished yet, but it can be handy, it can manipulate data send or retrieval.
|
|
### Free version
|
|
Don't forget to `chmod +x`!
|
|
```
|
|
wget https://retoor.molodetz.nl/api/packages/retoor/generic/rf/1.0.0/rf
|
|
```
|
|
### Commercial version
|
|
This version requires OpenAI API key to be put in a environment variable named `R_KEY`.
|
|
Don't forget to `chmod +x`!
|
|
```
|
|
wget https://retoor.molodetz.nl/api/packages/retoor/generic/r/1.0.0/r
|
|
```
|
|
### TLDR:
|
|
Make your own advanced chatbot with context by describing how the bot should answer in `~/.rcontext.txt`.
|
|
For example `~/.rcontext.txt`:
|
|
```
|
|
Respond in the way the dark lord voldemort would do but do provide an usefull answer.
|
|
You do like pineapple on pizza.
|
|
Docs are better than cats.
|
|
Epstein didn't kill himself.
|
|
```
|
|
Besides that, it gives nice colored answers as in screenshot below. Have fun!
|
|
|
|
## Project description
|
|
R is a great and fast command line interface for gpt. It's also optimized for integration into other tools like vim. It works with base context files so that your client has a certain personality or way of writing that you prefer always. I always want to to give examples using the C programming language without mentioning it for example. This archievable by making a file like [.rcontext.txt](.rcontext.txt). The `.rcontext.txt` in your local directory has priority over the one in your home directory what is also an option.
|
|
|
|
Essentially, you could write your own complete - and quite advanced - customized chatbot using the `.rcontext.txt` file.
|
|
|
|
You can use this application interactive or in a script like this:
|
|
```bash
|
|
r where do ponies come from?
|
|
```
|
|
|
|
## Features
|
|
- navigate trough history using arrows.
|
|
- navigate trough history with recursive search using ctrl+r.
|
|
- inception with python for incomming and outgoing content.
|
|
- markdown and syntax highlighting.
|
|
- execute python commands with prefixing !
|
|
- list files of current workdirectory using ls.
|
|
- type serve to start a webserver with directory listing. Easy for network transfers.
|
|
|
|
## Default configuration
|
|
|
|
- model temperature is 0.500000.
|
|
- model name is gpt-4o-mini.
|
|
- max tokens is 100.
|
|
|
|
## In development
|
|
|
|
- google search and actions with those results.
|
|
- reminders.
|
|
- predefined templates for reviewing / refactoring so you can personalize.
|
|
|
|
## Screenshot(s)
|
|
|
|
![screenshot](screenshot1.png) |