Submitted by sigoden t3_11pzc4i in coolgithubprojects
Comments
Educational_Ice151 t1_jc1sxbj wrote
This looks great!
Shared to r/aipromptprogramming
InitialCreature t1_jc1vomh wrote
puts my version to shame haha. I do like the idea of the color highlighting, what did you use for that?
sigoden OP t1_jc22eey wrote
Syntax highlighting: https://github.com/trishume/syntect
Color theme: https://github.com/jonschlinkert/sublime-monokai-extended
InitialCreature t1_jc2rjcz wrote
thank you! I'll try to integrate it in my own!
UseNew5079 t1_jc204th wrote
Really cool project! There should be a configuration option to limit size of input text to protect from mistakes like `cat big_big_file | aichat`
sigoden OP t1_jc22w3y wrote
AIChat has a max_tokens limit: https://github.com/sigoden/aichat/blob/4a74f5cd72160585721dbce1e92c110125d046dd/src/config/mod.rs#L263
UseNew5079 t1_jc2a9t1 wrote
Oh i see. That makes sense. So if you try to send more than 4096 tokens the API will respond with error or will it charge you for >4096 tokens and just skip oldest?
sigoden OP t1_jc2f2mf wrote
You can't send more than 4096 tokens.AIChat will automatically evaluate the number of tokens used, and when it exceeds 4096, it will directly report an error and will not make a request
sigoden OP t1_jc0lmic wrote
Features
github: https://github.com/sigoden/aichat.git