open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

AttributeError: module 'interpreter.interpreter' has no attribute 'chat' in version 1.0.0

Open Salvions opened this issue 4 months ago • 1 comments

Describe the bug

When trying to run interpreter.chat() I get:

AttributeError: module 'interpreter' has no attribute 'chat'

This same function worked just a few weeks ago, so I thought something in the definitions had changed, so I checked the library, but there was still a definition for chat in the OpenInterpreter class.

Reproduce

@app.post("/chat") async def chat_endpoint(message: Message): def event_stream(): for chunk in interpreter.chat(message.text, stream=True): # chunk può essere dict o str text = chunk.get("content") if isinstance(chunk, dict) else str(chunk) yield f"data: {text}\n\n" return StreamingResponse(event_stream(), media_type="text/event-stream")

Expected behavior

Output being returned in chunks.

Screenshots

No response

Open Interpreter version

1.0.0

Python version

3.12.3

Operating System name and version

Wnidows 11

Additional context

No response

Salvions avatar Jul 07 '25 08:07 Salvions

already change to : interpreter.respond()

manuelding avatar Jul 18 '25 06:07 manuelding