if that’s the case, maybe it would be possible to define your own function by the name of python? I have in the past seen the model try to call a “python” function that does not exist, with some code that it supposedly was trying to run; so, either defining your own python function OR creating a new function with preferable prompting like “real_python” description: “Python code goes here, ignore the other python function for code execution” (in this case, the “other function” seems to be part of its fine tuning, because I received hallucinated calls to it before, so it doesn’t have to be defined)
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How do I direct the GPT to call a function tool only once a goal was reached | 1 | 1116 | February 4, 2024 | |
How to get the executed Python code from code interpreter? | 5 | 222 | March 2, 2025 | |
[Theory] No Code Interpreter API Anytime Soon | 6 | 1285 | August 25, 2023 | |
Force using GPT for tasks in assistants API | 2 | 883 | January 10, 2024 | |
Why not to use the Code Interpreter and Plugins together? | 5 | 1487 | July 19, 2023 |