So this is a strange one, I’m using using ‘gpt-3.5-turbo-16k’ and when i pass openAI complex data in a prompt (JSON, YAML, or just a bulleted list) , it sometimes returns with a function call to a tool called ‘python’ and python code as the first argument. The problem is that i did not tell it there was a tool called ‘python’, and i don’t have a tool_call called python, so not the desired behavior i was looking for. I have seen this in ChatGPT, where it runs a little embedded Python interpreter to analyze complex data like JSON , but i have no idea how to have it NOT try and do that when using the API … maybe short of adding something to the system prompt. Any ideas?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Error 500 with gpt4o mini and function call | 2 | 432 | October 26, 2024 | |
| Gpt-3.5-turbo-16k-0613 tries to call a function that doesn't exist | 6 | 2059 | January 17, 2024 | |
| How do I direct the GPT to call a function tool only once a goal was reached | 1 | 1370 | February 4, 2024 | |
| GPT-4-0125-preview hallucinating tool calls | 3 | 2523 | March 5, 2024 | |
| GPT-5.2 fails to call tools properly | 7 | 1012 | April 22, 2026 |