Im trying to debug some errors in my log but i cant submit using 01-mini (with @codebase in chat)
here’s the error i keep encountering. Has happened several times today and last night.
any solutions?
We're having trouble connecting to OpenAI. This might be temporary - please try again in a moment. Error: Request failed with status code 400
API Error: {"error":{"message":"Invalid prompt: your prompt was flagged as potentially violating our usage policy. Please try again with a different prompt: https://platform.openai.com/docs/guides/reasoning/advice-on-prompting","type":"invalid_request_error","param":null,"code":"invalid_prompt"}}
9f742ded-beff-4e39-a814-dd7a80dc2949
There’s something triggering the invalid prompt response, but it’s not clear what. It may not always be clear what can lead to flagging like that.
It can be something in your prompt or in the context. I see your context has 107 lines, any chance you could scan those and see if there’s something that could trigger flagging? Sometimes non-text content may be interpreted in a weird way.
What happens if you do not include the whole context (i.e. try smaller parts). What happens if you try that directly with OpenAI (given you have access to the model).
Unfortunately, it’s not always easy to figure out what might trigger that response.
i’ve noticed that it mainly fails when i use the codebase command. It’s something i need since i use the codebase command to provide context to generate an sop/prd to start working on a new feature