Open Vikranth3140 opened 4 months ago
Right on, @Vikranth3140! Can you work the version details to distinguish between pip
installs and builds of the repo directly?
Hey @captivus,
I've updated the get_gpt_engineer_version
function to distinguish between pip installs and direct repo builds. The function now checks for the version via pip first and, if not found, retrieves the version from git tags for direct repo builds.
Thanks for the feedback! Please review the changes and let me know if any further adjustments are needed.
Hey @captivus,
Below is an example of how the --sysinfo
output will look:
python main.py --sysinfo
Output:
gpt_engineer_version: pip version: 0.1.0
os: Linux
os_version: #22~22.04.1-Ubuntu SMP Tue Apr 30 16:08:18 UTC 2024
architecture: x86_64
python_version: 3.10.13 (main, May 30 2024, 20:38:07) [GCC 9.4.0]
packages:
accessible-pygments: 0.0.4
aiohttp: 3.9.5
aiosignal: 1.3.1
alabaster: 0.7.16
annotated-types: 0.6.0
... (and more)
env_variables:
OPENAI_API_KEY: *****
OTHER_VAR: value
Thanks for the feedback! Please review the changes and let me know if any further adjustments are needed.
Great job with this @Vikranth3140!
@captivus, your review would be much appreciated. This LGTM, but I would love you to take a look at it, too.
Hey @captivus,
Do let me know if any changes are needed
Hey @Vikranth3140, @captivus is a little less available right now, but we will look into this. It lgtm, but I'd still wait for his confirmation and green light.
Thanks for your swift work on this!
Hey @captivus,
Do let me know if any changes are needed
Hey @viborc,
Any update on this PR as I have made the system information more verbose and all the checks have passed successfully.
This PR addresses #1194 by enhancing the
--sysinfo
command-line argument in the GPT-Engineer CLI tool. The--sysinfo
argument now provides detailed system information, including the version ofgpt-engineer
and environment variables with sensitive data masked for security.Changes Include:
get_gpt_engineer_version
andget_env_variables
to retrieve version data and environment variables.get_system_info
to include version and environment variable insights.main.py
to include the--sysinfo
option and corresponding logic for gathering and displaying the additional information.Usage:
To use the enhanced
--sysinfo
feature, run the following command:This will display the following information:
Example Output:
Notes:
Please review the changes and provide feedback. Thank you!