01 icon indicating copy to clipboard operation
01 copied to clipboard

Fix `UnboundLocalError` and make model configurable

Open jcp opened this issue 1 year ago • 1 comments

This commit addresses two issues in software/source/server/i.py:

  1. Fix the UnboundLocalError caused by importing the os module at both the top level and within the configure_interpreter function.
  2. Make the interpreter.llm.model configurable via the MODEL environment variable or --model command line argument. Defaults to gpt-4. This allows users to run O1 locally.

Fixes #116

jcp avatar Mar 22 '24 23:03 jcp

Looks great to me!

HanClinto avatar Mar 23 '24 03:03 HanClinto