chore: update fallback templates

- Added critical language rules to fallback response templates to ensure consistent language usage in responses.
- Updated logger context to include language and session-related keys for improved context management.
This commit is contained in:
wizardchen
2026-03-17 16:44:18 +08:00
committed by lyingbug
parent 139a9c40ff
commit 2ad1faf85f
3 changed files with 9 additions and 3 deletions
+3
View File
@@ -305,6 +305,9 @@ func CloneContext(ctx context.Context) context.Context {
types.TenantInfoContextKey,
types.UserIDContextKey,
types.UserContextKey,
types.LanguageContextKey,
types.SessionTenantIDContextKey,
types.EmbedQueryContextKey,
} {
if v := ctx.Value(k); v != nil {
newCtx = context.WithValue(newCtx, k, v)