I have a function in my assistant. This function, consisting of a massive 2000+ line JSON schema, processes user queries to construct JSON requests for an external API. It has been performing well but the costs are insane, around 15 cents per run.
Has anyone encountered similar issues with large-scale JSON processing, and how did you manage the costs?