2023-04-04 03:14:22 +00:00
|
|
|
loadtest:
|
2023-10-16 22:13:26 +00:00
|
|
|
ifdef TABBY_API_HOST
|
2023-04-02 13:25:46 +00:00
|
|
|
k6 run tests/*.loadtest.js
|
2023-10-16 22:13:26 +00:00
|
|
|
else
|
|
|
|
|
$(error TABBY_API_HOST is undefined)
|
|
|
|
|
endif
|
2023-06-12 19:21:27 +00:00
|
|
|
|
|
|
|
|
fix:
|
|
|
|
|
cargo clippy --fix --allow-dirty --allow-staged && cargo +nightly fmt
|
2023-09-29 22:51:54 +00:00
|
|
|
|
|
|
|
|
update-playground:
|
|
|
|
|
cd clients/tabby-playground && yarn build
|
|
|
|
|
rm -rf crates/tabby/playground && cp -R clients/tabby-playground/out crates/tabby/playground
|
|
|
|
|
|
2023-10-13 18:28:17 +00:00
|
|
|
bump-version:
|
2023-10-14 00:53:06 +00:00
|
|
|
cargo ws version --no-git-tag --force "*"
|
2023-10-13 18:28:17 +00:00
|
|
|
|
|
|
|
|
bump-release-version:
|
2023-10-13 18:42:43 +00:00
|
|
|
cargo ws version --allow-branch "r*" --no-individual-tags --force "*"
|
2023-10-21 22:33:30 +00:00
|
|
|
|
|
|
|
|
update-openapi-doc:
|
|
|
|
|
curl http://localhost:8080/api-docs/openapi.json | jq ' \
|
|
|
|
|
delpaths([ \
|
|
|
|
|
["paths", "/v1beta/chat/completions"], \
|
|
|
|
|
["paths", "/v1beta/search"], \
|
|
|
|
|
["components", "schemas", "CompletionRequest", "properties", "debug_options"], \
|
|
|
|
|
["components", "schemas", "CompletionResponse", "properties", "debug_data"], \
|
|
|
|
|
["components", "schemas", "DebugData"], \
|
|
|
|
|
["components", "schemas", "DebugOptions"] \
|
|
|
|
|
])' | jq '.servers[0] |= { url: "https://playground.app.tabbyml.com", description: "Playground server" }' \
|
|
|
|
|
> website/static/openapi.json
|