Re:Show HN: Api2ai – create an API agent from any OpenAPI Spec
by rattray on Sunday August 06, 2023 @11:30AM
(#37022990)
How do you handle very large OpenAPI specs? For example, I think stripe's is over a megabyte. What's the summarization strategy?
[ Parent
| on HN ]
Re:Show HN: Api2ai – create an API agent from any OpenAPI Spec
by quan on Sunday August 06, 2023 @01:01PM
(#37024046)
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