Skip to content

The line break character in the name of the conversation file causes the OSError error #1404

@Dixter-TES

Description

@Dixter-TES

Describe the bug

During the neural network response, a situation may occur in which the first few words used to generate the file name contain the \n character, which is not removed during the check in the interpreter\core\core.py file (284 line) and an OSError will be generated.

The easiest solution I see is to add the character \n to the list of characters on line 272.

Now: '<>:"/\|?!'
Will be: '<>:"/\|?
!\n'

Reproduce

You just need to compose a query where the neural network uses a line break in the first few characters.

Expected behavior

Successful creation of the file was expected.

Screenshots

image

Open Interpreter version

0.3.7

Python version

3.10.11

Operating System name and version

Windows 11

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions