From 42a1d0bd9113edec9d45bc777dc7e755c4fe01cf Mon Sep 17 00:00:00 2001 From: root Date: Tue, 28 Jul 2026 21:23:04 +0000 Subject: [PATCH] docs: add gitea-logger implementation example to litellm-self-heal --- litellm-self-heal.prose.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/litellm-self-heal.prose.md b/litellm-self-heal.prose.md index eb99339..2d01c35 100644 --- a/litellm-self-heal.prose.md +++ b/litellm-self-heal.prose.md @@ -302,3 +302,20 @@ With failures: ] } ``` + +## gitea-logger Implementation + +When this step executes, write the report JSON to a temp file and push to Gitea: + +```bash +REPO="https://abiba-bot:${GITEA_PAT}@git.sysloggh.net/SyslogSolution/health-logs" +DIR="litellm" +FILE="${run_id}.json" +echo "${report_json}" > /tmp/${FILE} +(cd /tmp && git clone --depth 1 "${REPO}" && + cp ${FILE} health-logs/${DIR}/${FILE} && + cd health-logs && git add ${DIR}/${FILE} && + git commit -m "litellm-health: ${run_id}" && git push) +rm -rf /tmp/health-logs /tmp/${FILE} +``` + -- 2.54.0