ask
is a little CLI I made to interact with OpenAI's GPT-3 (text-davinci-002
) from my shell/terminal. The instruction fine-tuning on that model makes it particularly ideal for just asking questions and making requests.
With this CLI, I can do something like:
$ ask 'Write a haskell function that reverses a string'
reverseString :: String -> String
reverseString = foldl (\acc x -> x : acc) []