Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
feat: Refactor OpenAI completion handling and update dependencies
Browse files Browse the repository at this point in the history
- 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
zurawiki committed Apr 24, 2023
1 parent 9c5cc03 commit e7f48b3
Show file tree
Hide file tree
Showing 3 changed files with 173 additions and 100 deletions.
Loading

0 comments on commit e7f48b3

Please sign in to comment.