New version

This commit is contained in:
sttlab
2026-04-27 18:57:30 +00:00
parent 65eb285b66
commit 7596578ed6
5 changed files with 82 additions and 13 deletions
+21 -9
View File
@@ -3,7 +3,8 @@ COMMAND := docker
COMPOSE_FILE := compose/docker-compose.yml
ENV_FILE := compose/.env
API_URL := http://localhost:4000
API_URL := https://llm.sttlab.pc:8443
MCP_URL := https://mcp.sttlab.pc:8443
# ─── Docker Compose ───────────────────────────────────────────────────────────
@@ -21,24 +22,35 @@ docker-logs: ## Tail logs
docker-ps: ## Show container status
$(COMMAND) compose -f $(COMPOSE_FILE) ps
docker-test: ## Send a test request to each configured model
@echo "→ claude-sonnet-4-6 (Anthropic)"
@curl -sf $(API_URL)/v1/chat/completions \
docker-test: test-llm test-mcp ## Run all tests
test-llm: test-llm-claude-sonnet-4-6 ## Test all LLM endpoints
test-llm-claude-sonnet-4-6: ## Test claude-sonnet-4-6 via Anthropic
@echo "→ LLM: claude-sonnet-4-6"
@curl -sk $(API_URL)/claude-sonnet-4-6/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"claude-sonnet-4-6","messages":[{"role":"user","content":"ping"}]}' \
| python3 -c "import sys,json; d=json.load(sys.stdin); print(d['choices'][0]['message']['content'])"
@echo "→ or-gpt-5.5 (OpenRouter)"
@curl -sf $(API_URL)/v1/chat/completions \
test-mcp-jira: ## Test MCP Jira endpoint via Traefik
@echo "→ MCP: /jira"
@curl -sk $(MCP_URL)/jira \
-X POST \
-H "Content-Type: application/json" \
-d '{"model":"or-gpt-5.5","messages":[{"role":"user","content":"ping"}]}' \
| python3 -c "import sys,json; d=json.load(sys.stdin); print(d['choices'][0]['message']['content'])"
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"make-test","version":"1.0"}}}' \
| grep -o '"name":"[^"]*"' | head -1
test-mcp: test-mcp-jira ## Test all MCP endpoints
docker-ui: ## Open the agentgateway UI in the browser
open http://localhost:15000/ui
# ─── Help ─────────────────────────────────────────────────────────────────────
.PHONY: docker-up docker-down docker-restart docker-logs docker-ps docker-test docker-ui help
.PHONY: docker-up docker-down docker-restart docker-logs docker-ps docker-test docker-ui help \
test-llm test-llm-claude-sonnet-4-6 test-mcp test-mcp-jira
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) \