AI translate refactor
This commit is contained in:
@@ -12,6 +12,14 @@ var (
|
||||
// overall_summary is empty or null.
|
||||
ErrNoOverallSummary = errors.New("ai_summarizer: overall_summary is empty")
|
||||
|
||||
// ErrTranslationNotReady is returned when tender.json exists but the
|
||||
// requested language is not listed in translation_status.done yet.
|
||||
ErrTranslationNotReady = errors.New("ai_summarizer: translation not ready yet")
|
||||
|
||||
// ErrNoTranslation is returned when translation_status marks a language done
|
||||
// but translations[language] is missing or empty.
|
||||
ErrNoTranslation = errors.New("ai_summarizer: translation is empty")
|
||||
|
||||
// ErrObjectNotFound is returned when the tender.json object does not
|
||||
// exist in the MinIO bucket (HTTP 404 / NoSuchKey).
|
||||
ErrObjectNotFound = errors.New("ai_summarizer: tender.json not found in storage")
|
||||
|
||||
Reference in New Issue
Block a user