ai-cfia / ai-cfia/fertiscan

Add LLM reachability check to backend prestart

未关闭
#678 1 条评论 0 个 reaction 已指派 1 人 已被 @Slumberdac 认领 在 GitHub 查看
backend good first issue
主要语言
HTML
星标
5
派生
2
平均合并
1 天 7 小时
30 天内合并 PR
1

描述

# Context

The current backend prestart sequence (`backend/scripts/prestart.sh`) validates DB and MinIO storage before the `backend` service starts, but not Azure OpenAI. Misconfigured LLM credentials, wrong endpoint, wrong API version, or a removed deployment currently slip through — the app boots clean and only fails when the first label extraction or compliance evaluation request lands.

# Outcome

Backend prestart fails fast on Azure OpenAI misconfiguration, consistent with how DB and storage are validated today.

# Acceptance criteria

- Prestart sequence verifies Azure OpenAI reachability before the `backend` service starts.
- The probe does not consume tokens (e.g. list deployments / list models, not a completion call).
- Failure surfaces a clear error identifying Azure OpenAI as the failing dependency.
- Failure exits non-zero so the `prestart` compose service does not complete successfully and the `backend` service does not start.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。