Add OpenAPI generation utility, update SPEC to reflect latest types

This commit is contained in:
Ashwin Bharambe 2024-08-15 13:45:45 -07:00
parent 417ba2aea0
commit 1f5eb9ff96
10 changed files with 770 additions and 656 deletions

View file

@ -0,0 +1,9 @@
The RFC Specification (OpenAPI format) is generated from the set of API endpoints located in `llama_toolchain/[<subdir>]/api/endpoints.py` using the `generate.py` utility.
Please install the following packages before running the script:
```
pip install python-openapi json-strong-typing fire PyYAML llama-models
```
Then simply run `sh run_openapi_generator.sh <OUTPUT_DIR>`