Skip to content

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

@Salvions

Description

@Salvions

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

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