feat: Introduce conversation configuration management and localization updates

- Added new ConversationConfig interface and API endpoints for retrieving and updating conversation settings.
- Enhanced AgentSettings.vue to include UI for configuring conversation parameters such as prompt, context template, temperature, and max tokens.
- Updated localization files in English and Chinese to include new strings for conversation settings.
- Implemented logic to load and save conversation configuration for tenants, ensuring defaults are applied when no specific configuration exists.
This commit is contained in:
wizardchen
2025-11-17 15:33:43 +08:00
parent a886106917
commit 1f5e445eaa
14 changed files with 913 additions and 175 deletions
@@ -0,0 +1,7 @@
-- Add conversation_config column to tenants table
-- This migration adds support for conversation configuration at tenant level
-- Used for normal mode conversation settings (prompt, context_template, temperature, max_tokens)
ALTER TABLE tenants
ADD COLUMN conversation_config JSON DEFAULT NULL COMMENT 'Conversation configuration for normal mode sessions (prompt, context_template, temperature, max_tokens)';
@@ -0,0 +1,7 @@
-- Add conversation_config column to tenants table
-- This migration adds support for conversation configuration at tenant level
-- Used for normal mode conversation settings (prompt, context_template, temperature, max_tokens)
ALTER TABLE tenants
ADD COLUMN conversation_config JSONB DEFAULT NULL;