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:
@@ -404,9 +404,12 @@ func (s *sessionService) GenerateTitle(ctx context.Context,
|
||||
}
|
||||
|
||||
// Prepare messages for title generation
|
||||
titlePrompt := types.RenderPromptPlaceholders(s.cfg.Conversation.GenerateSessionTitlePrompt, types.PlaceholderValues{
|
||||
"language": types.LanguageNameFromContext(ctx),
|
||||
})
|
||||
var chatMessages []chat.Message
|
||||
chatMessages = append(chatMessages,
|
||||
chat.Message{Role: "system", Content: s.cfg.Conversation.GenerateSessionTitlePrompt},
|
||||
chat.Message{Role: "system", Content: titlePrompt},
|
||||
)
|
||||
chatMessages = append(chatMessages,
|
||||
chat.Message{Role: "user", Content: message.Content},
|
||||
|
||||
Reference in New Issue
Block a user