Skip to content
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
merged 13 commits into from
Mar 11, 2024

Conversation

Umpire2018
Copy link
Collaborator

@Umpire2018 Umpire2018 commented Mar 6, 2024

  • 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.
  • 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.
image image

LOGIC-10 and others added 9 commits February 27, 2024 15:53
- 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
README.md Outdated Show resolved Hide resolved
@Umpire2018 Umpire2018 force-pushed the refactor_chatEngine branch from e4b071c to 966f842 Compare March 8, 2024 13:39
- 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 Umpire2018 force-pushed the refactor_chatEngine branch from 966f842 to ae5c53a Compare March 8, 2024 13:47
@LOGIC-10 LOGIC-10 merged commit 0fbf179 into main Mar 11, 2024
@Umpire2018 Umpire2018 deleted the refactor_chatEngine branch March 11, 2024 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants