Skip to content

0.2.0

Latest
Compare
Choose a tag to compare
@iceBear67 iceBear67 released this 05 Jul 08:08
· 1 commit to master since this release
eac1797

https://github.com/iceBear67/ask/actions/runs/9805097321

Fixed some bugs

New Features

-d -> dedicated contexts for each input(line)
-o has been replaced by -i / --interactive-mode

  • ⚠️ You have to specifiy -i manually for conversations

Reading content from stdin is now supported. Once -i is provided, ask will send input to LLM by line.
And you may need -d to reduce costs.

Examples:

# Translate a file into chinese and return immediately.
$ cat ./article | ask "Translate these into chinese"

# Ask a question and enter interactive mode
$ ask -i "nodejs axios send http request example"
......Examples........
>> (your turn)

# Translate this article line-by-line (Same Context, may exhaust your token)
$ cat ./article | ask -i "Translate what I say to Chinese"

# Translate this article line-by-line (Independent context for each)
$ cat ./article | ask -d "Translate what I say to Chinese"

# Translate the whole passage in one time.
$ cat ./article | ask "Translate this into Chinese"