Skip to content

Commit

Permalink
update infinity makefile + tooling scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfeil committed Dec 3, 2024
1 parent 1973648 commit d1f4645
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/assets/create_cli_v2_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The current version of Infinity uses the following arguments in its CLI:
EOF

# Append the help output to the file, setting COLUMNS=80 only for this command
TERMINAL_WIDTH=120 poetry run infinity_emb v2 --help >> "$OUTPUT_FILE" 2>&1
TERMINAL_WIDTH=120 infinity_emb v2 --help >> "$OUTPUT_FILE" 2>&1

# Close the code block in the markdown file
echo '```' >> "$OUTPUT_FILE"
Expand Down
4 changes: 2 additions & 2 deletions docs/assets/create_openapi_with_server_hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ cleanup() {
trap cleanup EXIT

# Start infinity_emb in the background
DO_NOT_TRACK=1 poetry run infinity_emb v2 --log-level error --engine debugengine --port 7996 &
DO_NOT_TRACK=1 infinity_emb v2 --log-level error --engine debugengine --port 7996 &
INFINITY_PID=$!
echo "infinity_emb started with PID $INFINITY_PID"

# Wait for infinity_emb to be ready
for i in {1..10}; do
for i in {1..20}; do
if wget -q --spider http://0.0.0.0:7996/openapi.json; then
echo "infinity_emb is ready."
break
Expand Down
4 changes: 2 additions & 2 deletions libs/infinity_emb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test tests:
poetry run pytest

openapi:
./../../docs/assets/create_openapi_with_server_hook.sh
poetry run ./../../docs/assets/create_openapi_with_server_hook.sh

######################
# LINTING AND FORMATTING
Expand Down Expand Up @@ -87,7 +87,7 @@ benchmark_embed_vision: tests/data/benchmark/benchmark_embed_image.json

# Generate CLI v2 documentation
cli_v2_docs:
./../../docs/assets/create_cli_v2_docs.sh
poetry run ./../../docs/assets/create_cli_v2_docs.sh

######################
# HELP
Expand Down

0 comments on commit d1f4645

Please sign in to comment.