-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OpenAPI specification and swagger-ui
In order for LLMs to interact with the REST API (which is on the goals of the so-called LAG project), we need to provide an openapi3 compatible API. We do this by depending on 'servant-openapi3', and add appropriate instances for the servant REST API. Due to some issues, it seems like it is impossible (or very difficult), to make custom gpts invoke REST endpoints with JSON bodies... So, for now we simply send all parameters via Query Parameters. Until the next servant release, we have to explicitly name all query parameters. See haskell-servant/servant#1604 for the PR that we are interested in.
- Loading branch information
Showing
5 changed files
with
648 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.