llama-stack-mirror/rfcs/openapi_generator
2024-08-15 13:50:59 -07:00
..
generate.py Add OpenAPI generation utility, update SPEC to reflect latest types 2024-08-15 13:50:59 -07:00
README.md Add OpenAPI generation utility, update SPEC to reflect latest types 2024-08-15 13:50:59 -07:00
run_openapi_generator.sh Add OpenAPI generation utility, update SPEC to reflect latest types 2024-08-15 13:50:59 -07:00

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>