01/software/source/server
James C. Palmer 216ecd6c9a Fix `UnboundLocalError` and make model configurable
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
2024-03-22 16:05:19 -07:00
..
conversations Rename directories to software and source 2024-03-21 14:20:50 -07:00
services Rename directories to software and source 2024-03-21 14:20:50 -07:00
skills Rename directories to software and source 2024-03-21 14:20:50 -07:00
system_messages Rename directories to software and source 2024-03-21 14:20:50 -07:00
tests Rename directories to software and source 2024-03-21 14:20:50 -07:00
utils Fix error on ubuntu machines 2024-03-21 16:28:26 -07:00
__init__.py Rename directories to software and source 2024-03-21 14:20:50 -07:00
conftest.py Rename directories to software and source 2024-03-21 14:20:50 -07:00
i.py Fix `UnboundLocalError` and make model configurable 2024-03-22 16:05:19 -07:00
llm.py Rename directories to software and source 2024-03-21 14:20:50 -07:00
server.py Fix `UnboundLocalError` and make model configurable 2024-03-22 16:05:19 -07:00
tunnel.py Rename directories to software and source 2024-03-21 14:20:50 -07:00