rikhuijzer / ata

Ask the Terminal Anything (ATA): ChatGPT in the terminal
MIT License
274 stars 17 forks source link

Add support for greater token lengths #56

Open danaimone opened 2 months ago

danaimone commented 2 months ago

Currently if you try to use the gpt-4o model with >2048 token length, the following exception occurs upon prompting:

thread '<unnamed>' panicked at ata/src/prompt.rs:81:20:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I am requesting that we add support for a great token length, as the pricing and performance is much better.

Reproduction:

CleanShot 2024-05-14 at 09 44 03@2x

danaimone commented 2 months ago

Correction, it appears the exception is occurring due to max token selection. Would be nice to be able to support greater than 2048 tokens.

rikhuijzer commented 2 months ago

Have you tried https://github.com/simonw/llm by any chance? It has a chat mode too and is generally much better than ata if you ask me

danaimone commented 2 months ago

Have you tried https://github.com/simonw/llm by any chance? It has a chat mode too and is generally much better than ata if you ask me

I haven't, thank you for the rec!