codeinterpreter-api icon indicating copy to clipboard operation
codeinterpreter-api copied to clipboard

Error:Unrecognized request argument supplied: functions

Open runningcd opened this issue 2 years ago • 1 comments

Mycode:

def main():
    with CodeInterpreterSession() as session:

        response = session.generate_response_sync(
            f"Plot the bitcoin chart of 2023 YTD ",
            detailed_error = True
        )

        # prints the text and shows the image
        response.show()

Then I get the Error: AI: Error in CodeInterpreterSession: InvalidRequestError - Unrecognized request argument supplied: functions

企业微信截图_16927871551015

how to get a llm that supports using functions.

runningcd avatar Aug 23 '23 10:08 runningcd

If you are using Azure, then you need to ensure that your deployment uses the "0613" version of the GPT model. Otherwise it will not work. Also ensure that you are in the 2023-07-01preview version of AzureGPT

hargunmujral avatar Nov 01 '23 13:11 hargunmujral