This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Refactor OpenAI completion handling and update dependencies
- Update dependencies in Cargo.toml, including async-openai, clap, tiktoken-rs, and tracing-subscriber - Use the `get_chat_completion_max_tokens` method from async-openai in prompt.rs to calculate `max_tokens` - Improve efficiency and accuracy of token calculation in prompt.rs with these changes.
- Loading branch information