OpenAI compatible API not passing Function call parameters (original) (raw)

December 1, 2025, 3:14am 1

Hi I’m using the OpenAI compatible API with function calling and it seems that the parameters are not being passed into the “functionDeclaration”:

Screenshot 2568-12-01 at 10.13.33

This is the log from the AI studio. Any particular reason why this is happening?

Hi @zacksiri,

Could you please elaborate on the issue you are facing?
From the attached screenshot, I can see multiple parameters have been passed.

To debug this further, please share what is expected to be passed as parameter, may be share a piece of code where you are trying to achieve this?

Thank you!

zacksiri December 17, 2025, 11:50am 5

In the functionDeclarations do you see that the parameters are missing? The function parameters are being passed into the OpenAI compatible API but are not being passed into the gemini format which is being done by the openAI translation layer on your side.

"tools": [
      {
        "functionDeclarations": [
          {
            "name": "schedule_meeting",
            "description": "Schedules a meeting with specified attendees at a given time and date.",
            "parameters": {
              "type": "object",
              "properties": {
                "attendees": {
                  "type": "array",
                  "items": {"type": "string"},
                  "description": "List of people attending the meeting."
                },
                "date": {
                  "type": "string",
                  "description": "Date of the meeting (e.g., '2024-07-29')"
                },
                "time": {
                  "type": "string",
                  "description": "Time of the meeting (e.g., '15:00')"
                },
                "topic": {
                  "type": "string",
                  "description": "The subject or topic of the meeting."
                }
              },
              "required": ["attendees", "date", "time", "topic"]
            }
          }
        ]
      }
    ]

here is an example of the gemini api native functionDeclarations