openai function calling and other api updates