01
01 copied to clipboard
Fix `UnboundLocalError` and make model configurable
This commit addresses two issues in software/source/server/i.py:
- Fix the
UnboundLocalErrorcaused by importing theosmodule at both the top level and within theconfigure_interpreterfunction. - Make the
interpreter.llm.modelconfigurable via theMODELenvironment variable or--modelcommand line argument. Defaults to gpt-4. This allows users to run O1 locally.
Fixes #116
Looks great to me!