Clay Icon

OpenAI API Error: Invalid Function Parameters Details

Β·
Β·

I am getting this error when I am trying to use my Open AI api key

An error occurred with OpenAI.
Type: invalid_request_error
Error: invalid schema for function 'returndata': in context=('properties', 'business_types'), array schema missing items.
Status Code: 400
Code: invalid_function_parameters

  • Avatar of Channeled
    Channeled
    APP
    Β·
    Β·

    The error you're encountering suggests an issue with your OpenAI API integration. To resolve this: 1. Check if your API key is correct. You can find or generate a new key at https://platform.openai.com/account/api-keys. 2. Update the key in Clay and see if the issue persists. 3. If the problem continues, it might be related to your OpenAI account's usage tier. Ensure your plan meets the required tokens per minute (TPM) for the services you're using in Clay. 4. You can check your OpenAI usage and limits at https://platform.openai.com/account/usage and https://platform.openai.com/account/limits. If you need more assistance, please request human support by clicking on "Talk to a person" in this chat.

  • Avatar of Channeled
    Channeled
    APP
    Β·
    Β·
  • Avatar of Channeled
    Channeled
    APP
    Β·
    Β·

    Thanks! We've reopened this thread. You can continue to add more detail directly in this thread.

  • Avatar of Raj M.
    Raj M.
    Β·
    Β·

    I am still facing the issue

  • Avatar of Bo (.
    Bo (.
    Β·
    Β·

    When I'm trying to access the table, it says the table was deleted. Typically, this would be because the data that is being referenced either in the prompt or inside of the JSON format is wrong. So updating the prompt and updating the JSON format would fix this.

  • Avatar of Channeled
    Channeled
    APP
    Β·
    Β·
  • Avatar of Channeled
    Channeled
    APP
    Β·
    Β·

    Thank you so much for sharing your feedback ​Raj M.​!