feat: enhance localization and configuration support
- Added timezone and language settings to the environment configuration. - Introduced built-in agent configurations with multilingual support for various agents. - Updated Docker Compose to utilize new environment variables for timezone and language. - Created new prompt templates for question generation, summary generation, and keywords extraction.
This commit is contained in:
@@ -1873,11 +1873,14 @@ func (s *knowledgeService) getSummary(ctx context.Context,
|
||||
}
|
||||
|
||||
// Generate summary using AI model
|
||||
summaryPrompt := types.RenderPromptPlaceholders(s.config.Conversation.GenerateSummaryPrompt, types.PlaceholderValues{
|
||||
"language": types.LanguageNameFromContext(ctx),
|
||||
})
|
||||
thinking := false
|
||||
summary, err := summaryModel.Chat(ctx, []chat.Message{
|
||||
{
|
||||
Role: "system",
|
||||
Content: s.config.Conversation.GenerateSummaryPrompt,
|
||||
Content: summaryPrompt,
|
||||
},
|
||||
{
|
||||
Role: "user",
|
||||
|
||||
Reference in New Issue
Block a user