summaryrefslogtreecommitdiffstats
path: root/src/utils
AgeCommit message (Collapse)AuthorLines
2023-12-19feat: support gemini (#273)sigoden-0/+5
2023-11-27feat: support vision (#249)sigoden-0/+9
* feat: support vision * clippy * implement vision * resolve data url to local file * add model openai:gpt-4-vision-preview * use newline to concate embeded text files * set max_tokens for gpt-4-vision-preview
2023-11-08refactor: improve render (#235)sigoden-214/+0
* refactor: redesign render - if stdout is not terminal, just write reply text to stdout - rename repl_render_stream to markdown_stream - deprecate cmd_render_stream - use raw_stream to just print streaming reply text * optimize rendering error * optimize render_stream
2023-11-07fix: unable to build on android using termux (#222)sigoden-0/+22
2023-11-03fix: wrap and tokenize algorithm (#205)sigoden-113/+28
* fix: wrap and tokenize algorithm * update tests * remove unnecessary tokenize from tiktoken
2023-11-02refactor: optimize render (#202)sigoden-4/+0
2023-11-02refactor: improve code quanity (#197)sigoden-0/+57
- move model_info.rs/message.rs to clients/ - rename SharedConfig to GlobalConfig
2023-11-02refactor: improve code quanity (#196)sigoden-17/+2
- rewrite Repl, remove ReplHandler - move ReplyStreamHandler to repl/ and rename it to ReplyHandler - deprecate utils::print_now - refactor session info
2023-11-01refactor: clients/* and config.rs (#193)sigoden-0/+68
- add register_clients macro to make it easier to add a new client - no create_client_config, just add const PROMPTS - move ModelInfo from clients/ to config/ - model's max_tokens are optional - improve code quanity on config/mod.rs - add/use macro config_get_fn
2023-10-31chore: move split_line_* from repl/cmd.rs to utils/ (#190)sigoden-0/+218
2023-10-30fix: dry run on role or session (#181)sigoden-56/+164
2023-10-30fix: detect light theme only by env var (#177)sigoden-259/+18
2023-10-30chore: remove unnecessary clippy macrossigoden-2/+0
2023-10-29feat: autodetect light theme on unix-like os (#168)sigoden-0/+259
2023-10-27fix: .copy don't works on some linux distro (#161)sigoden-6/+0
2023-10-27refactor: streaming input text in dry-run mode (#154)sigoden-0/+8
2023-10-26feat: support multi bots and custom url (#150)sigoden-20/+8
2023-07-10fix: minor code cleanup and pedantic lints (#134)Anthony Rubick-33/+32
2023-05-04feat: add `.copy` command (#119)sigoden-0/+6
2023-03-22fix: mask api_key/organization_id in info text (#93)sigoden-0/+20
2023-03-09feat: add remain tokens indicator and max tokens guard (#50)sigoden-0/+615