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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user