Incorrect indentation (python)

first line (import) is ok;
second line (import also) is indented twice, and so is the rest of the code.

ver: latest bolt.diy
provider: openai-like (https://glhf.chat/)
model: llama 3.3 70b instruct

1 Like

What is your prompt?

Other then that I think bolt it at the moment not made to implement python apps properly. It´s tuned to do webapps based on nodejs/js (some can correct me if I am wrong :slight_smile: )

yeah its the system prompt
the examples in the system prompt should not have any leading spaces in the file content

try the experimental optimized prompt
it has removed the leading spaces from the examples in the prompt

image

you can change the system prompt from the setting menu features tab

2 Likes