MemGPT/letta/server/generate_openapi_schema.sh
Shubham Naik 9c1b0d3bf7
feat: add bash script to allow people to generate openapi schema with… (#2015)
Co-authored-by: Shubham Naik <shub@memgpt.ai>
2024-11-07 11:17:09 -08:00

13 lines
371 B
Bash
Executable File

#!/bin/sh
echo "Generating OpenAPI schema..."
# check if poetry is installed
if ! command -v poetry &> /dev/null
then
echo "Poetry could not be found. Please install poetry to generate the OpenAPI schema."
exit
fi
# generate OpenAPI schema
poetry run python -c 'from letta.server.rest_api.app import app, generate_openapi_schema; generate_openapi_schema(app);'