Skip to content

Is there a way to use intepreter.chat(message) with auto_run = False and be able to confirm the code execution with a seccond message? #1657

@NicolasEliasArias

Description

@NicolasEliasArias

I'm trying to create a local server in which I first send a simple message to OI with interpreter.chat("Open Notepad") and then once I get the message to confirm the action send another meesage interpreter.chat("y") to confirm the action but nothing happens when I do that.

The only way I can make it work is if I use the interactive chat with interpreter.chat() and I type the messages in console.

I need the auto_run flag disabled. All the examples I see are using auto_run = True but this is unsafe.

Is this possible?

Describe the solution you'd like

Some way to confirm actions programatically with intepreter.chat("y") after asking for some actions

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions