Skip to content

Comment on Show HN: Api2ai – create an API agent from any OpenAPI Spec

Comments

How do you handle very large OpenAPI specs? For example, I think stripe's is over a megabyte. What's the summarization strategy?

quanOP

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.