Skip to content

Commit

Permalink
Restored yaspin to core module (otherwise we'd need to conditionall…
Browse files Browse the repository at this point in the history
…y import scan_code)
  • Loading branch information
KillianLucas committed Nov 2, 2023
1 parent c1ad5f1 commit 061fc2c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions interpreter/llm/setup_openai_coding_llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,12 @@ def coding_llm(messages):
yield {"code": code_delta}

else:
if interpreter.debug_mode:
# If name exists and it's not "execute" or "python", who knows what's going on.
if "name" in accumulated_deltas["function_call"]:
print(
"GOT BAD FUNCTION CALL: ",
"Encountered an unexpected function call: ",
accumulated_deltas["function_call"],
"\nPlease open an issue and provide the above info at: https://github.com/KillianLucas/open-interpreter",
)

return coding_llm
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ astor = "^0.8.1"
chromadb = "^0.4.14"
git-python = "^1.0.3"
inquirer = "^3.1.3"
litellm = "0.8.6"
litellm = "0.11.1"
ooba = "^0.0.21"
openai = "^0.28.0"
pyyaml = "^6.0.1"
Expand All @@ -25,9 +25,9 @@ six = "^1.16.0"
tiktoken = "^0.4.0"
tokentrim = "^0.1.9"
wget = "^3.2"
yaspin = "^3.0.1"
pyreadline3 = {version = "^3.4.1", markers = "sys_platform == 'win32'"}


[tool.poetry.group.dev.dependencies]
black = "^23.10.1"
isort = "^5.12.0"
Expand All @@ -42,7 +42,7 @@ build-backend = "poetry.core.masonry.api"
interpreter = "interpreter:cli"

[tool.poetry.extras]
safe = ["semgrep", "yaspin"]
safe = ["semgrep"]

[tool.black]
target-version = ['py311']
Expand Down

0 comments on commit 061fc2c

Please sign in to comment.