-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: streamline configuration variable access #61
Merged
Conversation
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
- Update dependencies to the latest versions - Remove unused content in log.py - Delete unused api_client.py - Remove unused import statements
- Refactor configuration access via `pydantic-settings`, streamlining how configuration values are accessed and providing type validation. - Implement a new `language_prompt` function in the CLI tool, allowing users to input a language using ISO 639 codes or language names. This includes a retry mechanism using the tenacity library to handle invalid inputs, enhancing user experience and reliability. - Initially replace YAML configuration with TOML, improving the consistency and readability of the configuration files. This change includes integration with tomli for efficient config parsing and manipulation. - Introduce an automatic mechanism for setting configuration file paths, supporting both program root directory paths and hidden paths. - Introduce 'configure' commands to the CLI, enabling dynamic configuration updates and command execution. 临时提交
- Remove redundant import. - Adjust the `max_input_tokens_map` within `settings.py`. - Removed the static `language_mapping` dictionary from `config.py`. This change paves the way for a more robust and scalable solution for multilingual support within the application.
- Replace YAML-based configuration handling with pydantic-settings and TOML for enhanced reliability and ease of use. - Refactor file path operations to use pathlib.Path, adopting a more modern and object-oriented approach. - Rebuild the CLI entry point using Click to improve maintainability and user experience. - Version bumped to 0.1.0 to mark the significant updates in configuration management and CLI design.
- Add `chat-with-repo` to cli
LOGIC-10
reviewed
Mar 8, 2024
LOGIC-10
reviewed
Mar 8, 2024
Umpire2018
force-pushed
the
refactor_chatEngine
branch
from
March 8, 2024 13:39
e4b071c
to
966f842
Compare
- Rename `repo_agent` to `repoagent`. - Fix settings attribute for max tokens in ChatEngine. - Update README to use correct command. - bump version to v0.1.2
Umpire2018
force-pushed
the
refactor_chatEngine
branch
from
March 8, 2024 13:47
966f842
to
ae5c53a
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
pydantic-settings
, streamlining how configuration values are accessed and providing type validation.language_prompt
function in the CLI tool, allowing users to input a language using ISO 639 codes or language names. This includes a retry mechanism using the tenacity library to handle invalid inputs, enhancing user experience and reliability.