Error when attempting to send tools in chat completion request

When attempting to send a request to complete a conversation using tools to the OpenAI API, I encounter the following error:

NotFoundError: Error code: 404 - {'error': {'message': 'Unrecognized request argument supplied: tools', 'type': 'invalid_request_error', 'param': None, 'code': None}}

I was trying to test with the test code in the documentation, and I get the same error. I am using version ‘1.12.0’ of OpenAI and gpt4-1106-preview

What am I doing wrong?

1 Like

Same here
That chat is very important
Did you get help

Since the forum member hasn’t been seen since April 2024, they are likely 100 different projects beyond needing help for this problem.

Go to “API Reference” and take a look at modern methods for using AI models and updating the OpenAI SDK library that you may be using (aka, don’t ask ChatGPT to write code).