Skip to content

A curl script to ask questions to Duckduckgo LLMs (Llama3, etc...)

Notifications You must be signed in to change notification settings

zoobab/curlduck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 

Repository files navigation

Curlduck

A simple curl+grep shell script to ask questions to Duckduckgo AIChat LLMs (Llama3, etc...).

Usage

$ ./curlduck.sh "question"

Example:

$ ./curlduck.sh "What is the surface area of the earth in square kilometers?"
The surface area of the Earth is approximately 510,065,600 square kilometers.

Dependencies

bash curl grep

Todo

  • add a usage example if argument is not provided
  • add a check_commands if 'curl grep awk sed jq tr' are not installed
  • replace JQ by awk or sed equivalent
  • curl does not have a simple way to output a particular header (x-vqd-4)
  • remove JSON processing with stream set to false? Give an error 500 bad request?
  • add an option to specify another model (llama3, gpt4o, mixtral, claude3)
  • make it compatible with busybox shell
  • stickiness of conversations by keeping a conversation ID somewhere like a tmpfile
  • handle french (and other langs) accents

Links

About

A curl script to ask questions to Duckduckgo LLMs (Llama3, etc...)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages