-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor AI chat model for live streaming and precise responses
This commit introduces several changes to the AI chat model in the `aicodebot/cli.py` file. The main changes include: - The introduction of two new temperature settings: `PRECISE_TEMPERATURE` and `CREATIVE_TEMPERATURE`. These settings allow for more control over the randomness of the AI's responses. - The use of the `rich.live.Live` class for live streaming of the AI's responses. This is implemented in the `alignment`, `debug`, `fun_fact`, `review`, and `sidekick` commands. - The creation of a `RichLiveCallbackHandler` class that updates the live stream with each new token generated by the AI. - Adjustments to the `max_tokens` parameter in the `fun_fact` and `sidekick` commands. These changes aim to improve the user experience by providing real-time feedback from the AI and allowing for more precise responses. 🤖💬
- Loading branch information
1 parent
172bd5c
commit 0ddc6d2
Showing
1 changed file
with
69 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters