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

fix: stop overwriting safe_mode config.yaml setting with default in args #554

Conversation

ericrallen
Copy link
Collaborator

Describe the changes you have made:

safe_mode from config.yaml was being overwritten by the default option set in the arguments config. I forgot that we already have a default value in the core.py Interpreter instance and the way args were being handled meant that the default value functionality I added in #511 was actually overriding the value from config.yaml.

Reference any relevant issue (Updates #484)

  • I have performed a self-review of my code:

I have tested the code on the following OS:

  • Windows
  • MacOS
  • Linux

AI Language Model (if applicable)

  • GPT4
  • GPT3
  • Llama 7B
  • Llama 13B
  • Llama 34B
  • Huggingface model (Please specify which one)

@KillianLucas
Copy link
Collaborator

Nice, great catch Eric! Merging.

@KillianLucas KillianLucas merged commit 2d85003 into OpenInterpreter:main Sep 29, 2023
1 check failed
joshuavial pushed a commit to joshuavial/open-interpreter that referenced this pull request Nov 16, 2023
…ont-overwrite-config-with-defaults

fix: stop overwriting safe_mode config.yaml setting with default in args
Former-commit-id: 2d85003
Former-commit-id: 9cd00e7ce5410855213c2027318c16ba4d3424d0
Former-commit-id: d4f4737d4f4234097be4912d16b9f0ab042ed344 [formerly 1a9445c89ce448e40b1b9bb7eab884c624b84689]
Former-commit-id: 9b22617a187a7ad2cb05e7d336fb5ad873492fbe
joshuavial pushed a commit to joshuavial/open-interpreter that referenced this pull request Nov 16, 2023
…ont-overwrite-config-with-defaults

fix: stop overwriting safe_mode config.yaml setting with default in args
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