Any ideas for getting around this issue? I want ChatGPT to generate the text not the Python code and execute that code.
"NER task: extract all named entities from this text. Don't use python. JSON format"
I tried Gemini too, and it works without needing to tell it to not use Python.
The API is still better, of course, because you can constrain output to a JSON schema of your choosing... but all models now seem quite good at outputting valid JSON when asked and can follow 1-shot schema examples