Files
gitea-ai-webhook/compose.yaml
Ben 2309887329 fix: map REVIEW_MAX_COMMENTS to both inline and context limits
REVIEW_MAX_COMMENTS was only mapped to REVIEW__MAX_INLINE_COMMENTS which
only limits comments per-file. Added REVIEW__MAX_CONTEXT_COMMENTS mapping
to also limit total comments per MR, which is what users expected.

Also added missing LLM__META__TEMPERATURE env var mapping.
2026-01-02 01:09:48 +00:00

30 lines
1007 B
YAML

services:
ai-webhook:
image: gitea.ext.ben.io/b3nw/gitea-ai-webhook:latest
container_name: gitea-ai-webhook
restart: always
ports:
- "${PORT:-3000}:3000"
environment:
- GITEA_TOKEN=${GITEA_TOKEN}
# LLM Configuration
- LLM__PROVIDER=${LLM_PROVIDER:-OPENAI}
- LLM__META__MODEL=${LLM_MODEL:-gpt-4o}
- LLM__META__TEMPERATURE=${LLM_TEMPERATURE:-0.2}
# OpenAI / Compatible API Config
- LLM__HTTP_CLIENT__API_TOKEN=${OPENAI_API_KEY}
- LLM__HTTP_CLIENT__API_URL=${OPENAI_BASE_URL:-https://api.openai.com/v1/}
# VCS Config
- VCS__PROVIDER=GITEA
- VCS__HTTP_CLIENT__API_TOKEN=${GITEA_TOKEN}
- VCS__HTTP_CLIENT__API_URL=${GITEA_API_URL}
# Review Config (max comments applies to both inline per-file and context per-MR)
- REVIEW__MAX_INLINE_COMMENTS=${REVIEW_MAX_COMMENTS:-3}
- REVIEW__MAX_CONTEXT_COMMENTS=${REVIEW_MAX_COMMENTS:-3}
volumes:
- xai-cache:/root/.cache
volumes:
xai-cache: