fix: streamline API docs generation to sync both locations

Updated make docs to generate swagger.json to both api-docs/ and
web/project-site/public/api/ to match CI workflow behavior.

This fixes CI failures where the project site swagger.json was out
of sync with code changes (max_new_tokens field for Voxtral).
This commit is contained in:
rishikanthc
2025-12-31 16:03:33 -08:00
parent f9a58baa1e
commit b8fd360ca2
2 changed files with 7 additions and 1 deletions

View File

@@ -55,7 +55,9 @@ docs: ## Generate API documentation from Go code annotations
@echo "Generating API documentation..."
@command -v swag >/dev/null 2>&1 || { echo "Error: swag not installed. Run: go install github.com/swaggo/swag/cmd/swag@latest"; exit 1; }
swag init -g cmd/server/main.go -o api-docs
@echo "✓ API documentation generated in api-docs/"
@echo "Syncing to project site..."
swag init -g server/main.go -o web/project-site/public/api --outputTypes json --dir cmd,internal
@echo "✓ API documentation generated in api-docs/ and web/project-site/public/api/"
docs-clean: ## Clean generated API documentation
@echo "Cleaning API documentation..."

View File

@@ -4855,6 +4855,10 @@
"description": "Output formatting",
"type": "integer"
},
"max_new_tokens": {
"description": "Voxtral settings",
"type": "integer"
},
"max_speakers": {
"type": "integer"
},