-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add bash script to allow people to generate openapi schema with… (
#2015) Co-authored-by: Shubham Naik <[email protected]>
- Loading branch information
Showing
2 changed files
with
44 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/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);' |
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