Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes significant updates to the
OvIntelligence
package, focusing on adding new functionalities, improving logging, and enhancing the user interface. The most significant changes include adding a logger setup, a model selector, an operator mode tutorial, and token counting capabilities. Additionally, several files have been renamed and dependencies updated.New functionalities and enhancements:
OvIntelligence/logger_setup.py
: Introduced a logger setup function to configure a logger with a rotating file handler and stream handler.OvIntelligence/model_selector.py
: Added a model selector function to instantiate and return the appropriate language model instance based on the given model name.OvIntelligence/operator_mode.py
: Created an operator mode tutorial to guide users through the interface and features of the application.OvIntelligence/token_counter.py
: Implemented a token counter class to count tokens for input and output texts usingtiktoken
, along with a decorator to automatically count tokens for functions that process queries.File renaming and dependency updates:
OvStudent/config_manager.py
renamed toOvIntelligence/config_manager.py
: Updated thegemini_api_key
to a non-null value.OvStudent/requirements.txt
renamed toOvIntelligence/requirements.txt
: Added new dependenciesgpt4all
,tiktoken
, andpyngrok
.These changes collectively improve the functionality, logging, and usability of the
OvIntelligence
package.