Go to file
b1ek ade011120f
fix GPT3 messages not loading
2024-05-05 16:50:50 +10:00
src fix GPT3 messages not loading 2024-05-05 16:50:50 +10:00
.gitignore init repo 2024-04-12 01:09:00 +10:00
Cargo.lock 0.1.1 version 2024-05-05 16:40:16 +10:00
Cargo.toml 0.1.1 version 2024-05-05 16:40:16 +10:00
LICENSE init repo 2024-04-12 01:09:00 +10:00
README.md mention configuration and cache 2024-04-14 16:45:10 +10:00

README.md

hey!

hey is a command line tool to contact DuckDuckGo Chat API from your terminal. based on this article

like this:

$ hey, how do you install windows on arch linux\?
Contacting DuckDuckGo chat AI...
 Here are the basic steps to install Windows on a system that already has Arch Linux installed:

1. Shrink the Arch Linux partition to make space for Windows. This can be done using a disk partitioning tool like GParted. You'll need at least 20-30GB of unallocated space for Windows.

2. Download the Windows ISO file from Microsoft's website and write it to a USB drive to create a bootable Windows installer. 

3. Reboot the system and enter the BIOS/UEFI settings to change the boot order so that the USB drive is prioritized. This will allow you to boot into the Windows installer.

4. When the Windows installer loads, select the "Custom install" option and choose the unallocated space you created earlier as the location to install Windows. 

5. Follow the on-screen instructions to complete the Windows installation. The installer will automatically format the partition and install Windows files. 

6. Once installed, you'll need to reconfigure the bootloader like GRUB to add an entry to dual boot between Arch Linux and Windows. This can be done by running update-grub in Arch Linux.

7. Reboot and you should now see an option to choose between Arch Linux and Windows on startup. You can switch between them as needed.

A few things to note - make sure to backup any important data before shrinking partitions. Also, Windows may overwrite the MBR with its own bootloader, so reconfiguring GRUB is important to retain Arch Linux booting ability. With some preparation, it's possible to smoothly install Windows alongside an existing Arch Linux installation.

installation

if you run linux or macos,

git clone https://git.blek.codes/blek/hey.git
cd hey
cargo b -r
sudo cp target/release/hey /usr/bin/hey,

if you are on windows, idk have fun

via a package manager

arch (AUR) - paru -S hey-duck

note for packagers

to avoid name conflicts, packages should be named hey-duck or its form in a different naming convention.
please submit an issue or a PR if you have packaged this to a distro, or email one of the maintainers.

configuration & cache

there is a config file in ~/.config/hey/conf.toml and a cache file in ~/.cache/hey/cache.json

you can set their paths and filenames via HEY_CONFIG_PATH, HEY_CONFIG_FILENAME and HEY_CACHE_PATH, HEY_CACHE_FILENAME.

config file reference

model = "claude-instant-1.2" # or "gpt-3.5-turbo-0125"
tos = false # whether if you agree to ddg chat tos

cache file reference

cache file stores the last VQD used. it is (probably) there so that the ai model would remember your history. read more about duckduckgo chat api

if you want to reset the VQD, just delete the file.