feat(types): add language field to QuestionGenerationPayload for locale support

This commit is contained in:
wizardchen
2026-03-20 13:38:26 +08:00
committed by lyingbug
parent 59d2f6b54c
commit d7fd3b5eee
+2
View File
@@ -60,6 +60,8 @@ type QuestionGenerationPayload struct {
KnowledgeBaseID string `json:"knowledge_base_id"`
KnowledgeID string `json:"knowledge_id"`
QuestionCount int `json:"question_count"`
// Language is the request locale (e.g. zh-CN, en-US) when the task was enqueued, used for {{language}} / {{lang}} in templates.
Language string `json:"language,omitempty"`
}
// SummaryGenerationPayload represents the summary generation task payload