Skip to content

Commit

Permalink
Downgrade httpx, fix tool outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Dec 4, 2024
1 parent 798c35e commit cdec706
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,17 @@ async def async_respond(self, user_input=None):
result = ToolResult(output="Tool execution cancelled by user")

if self.tool_calling:
if result.error:
output = result.error
else:
output = result.output
self.messages.append(
{
"role": "tool",
"content": output,
"tool_call_id": tool_call.id,
}
)
if result.base64_image:
self.messages.append(
{
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ readchar = "^4.2.1"
pillow = "^11.0.0"
uvicorn = "^0.32.0"
pynput = "^1.7.7"
httpx = "0.27.2"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit cdec706

Please sign in to comment.