refactor: фаза 5 — чистка (APP_VERSION, LLM константы)

- constants.py: APP_VERSION, LLM_DEFAULT_TEMPERATURE, LLM_RESPONSE_FORMAT
- main.py: версия из APP_VERSION (вместо хардкод '0.1.0'×2)
- llm.py: temperature и response_format из constants

Всего: 85 тестов, ruff clean
This commit is contained in:
Marker689
2026-05-10 07:59:57 +03:00
parent f252c256d8
commit 904e917f1f
3 changed files with 15 additions and 6 deletions

View File

@@ -154,6 +154,8 @@ CSV_MEDIA_TYPE = "text/csv"
LLM_DEFAULT_MODEL = "gpt-4o-mini"
LLM_DEFAULT_API_BASE = "https://api.openai.com/v1"
LLM_DEFAULT_TIMEOUT = 30
LLM_DEFAULT_TEMPERATURE = 0.3
LLM_RESPONSE_FORMAT = "json_object"
LLM_ANALYSIS_SYSTEM_PROMPT = (
"You are a security analyst reviewing GuardDog findings for a software package. "
"Given a finding (rule name, severity, message, code snippet, location), "
@@ -173,6 +175,7 @@ LLM_ANALYSIS_SYSTEM_PROMPT = (
APP_NAME = "GuardDog Nexus"
APP_DESCRIPTION = "Scan PyPI packages from Sonatype Nexus webhooks using GuardDog"
APP_PACKAGE = "guarddog_nexus"
APP_VERSION = "0.1.0"
# ---------------------------------------------------------------------------
# HTTP