dcf19b91cd
- Added new routes and handlers for AI pipeline operations, including scraping documents, batch summarization, translation, and syncing with the Opplens AI service. - Introduced request forms for handling tender references and batch operations. - Enhanced the AI service with methods for triggering batch operations and managing pipeline runs. - Updated Swagger documentation to reflect the new AI pipeline endpoints and their functionalities. This update integrates comprehensive AI pipeline capabilities into the tender management system, improving operational efficiency and user experience.
15 lines
516 B
Go
15 lines
516 B
Go
package ai_pipeline
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrAINotConfigured is returned when the Opplens AI client is not configured.
|
|
ErrAINotConfigured = errors.New("ai_pipeline: AI service not configured")
|
|
|
|
// ErrEmptyTenderBatch is returned when a batch request has no tenders.
|
|
ErrEmptyTenderBatch = errors.New("ai_pipeline: at least one tender is required")
|
|
|
|
// ErrEmptyLanguages is returned when languages are required but missing.
|
|
ErrEmptyLanguages = errors.New("ai_pipeline: at least one language is required")
|
|
)
|