Hello,
I am currently developing a service similar to Airbnb. I have some questions regarding integrating external services using OpenAI function calling.
- OpenAI does not recognize the word “currently.” For example, in Korea, today is March 10, 2025. However, when I ask OpenAI, “What’s today’s date?” it responds with an incorrect answer, such as “October 11, 2023.”
To solve this, I implemented a function calling logic that provides today’s date. However, I later realized that function calling only allows a single function to be invoked per call, which prevents another function (for searching accommodations) from being executed. - When I input the sentence:
3.*“Find me a room for 2 ppl, 2 weeks from now for a month near NY university”**
I want OpenAI to extract the arguments: now, 2 weeks, 2 ppl, and NY university.
In this case, how should I structure multiple function calls to handle this properly?
I need to invoke both get_today
and get_airbnb_api
functions simultaneously—one to provide OpenAI with today’s date and the other to process the extracted arguments through function calling on the server. However, I am struggling to figure out how to implement this.
Thank you for reading.