Comment on Show HN: Api2ai – create an API agent from any OpenAPI SpecComments−rattray3yHow do you handle very large OpenAPI specs? For example, I think stripe's is over a megabyte. What's the summarization strategy?−quanOP3yIt’s done in two steps: 1. Create an array of every endpoint’s summary text and ask AI to select one based on the user prompt 2. Use function calling with parameters of the selected operation in step 1
Comments
How do you handle very large OpenAPI specs? For example, I think stripe's is over a megabyte. What's the summarization strategy?
It’s done in two steps: 1. Create an array of every endpoint’s summary text and ask AI to select one based on the user prompt 2. Use function calling with parameters of the selected operation in step 1