diff --git a/.env.prod b/.env.prod index 10528834..b0bafa2d 100644 --- a/.env.prod +++ b/.env.prod @@ -22,14 +22,14 @@ AUTH_JWT_AUDIENCE=758be5fcba2df784fdb4 AUTH_JWT_JWKS_URL=http://192.168.100.230:8870/.well-known/jwks # Casdoor -CASDOOR_BASE_URL=http://ai.well-trust.com:8870 +CASDOOR_BASE_URL=https://auth.well-trust.com # 与 Casdoor 里 Application「hxops-prod」(或你当前生产应用)的 Client ID 一致 CASDOOR_CLIENT_ID=758be5fcba2df784fdb4 CASDOOR_CLIENT_SECRET=522161bea5bb4f90b63f77c41dc26d223f1244ab # 兜底 redirect_uri;实际 OAuth 以浏览器地址为准,Casdoor「hxops-prod」应用须登记例如: # http://192.168.100.230:8881/casdoor-callback # http://ai.well-trust.com:8881/casdoor-callback -CASDOOR_REDIRECT_URI=http://192.168.100.230:8881/casdoor-callback +CASDOOR_REDIRECT_URI=https://ai.well-trust.com/casdoor-callback CASDOOR_SCOPE=openid profile email CASDOOR_ORGANIZATION=organization_HX # Casdoor Providers → wecom:Name 字段(截图即为 wecom);Organization=organization_HX,Sub type=Internal,Scope=snsapi_userinfo diff --git a/.env.test b/.env.test index 24e05669..4031dec5 100644 --- a/.env.test +++ b/.env.test @@ -22,14 +22,14 @@ AUTH_JWT_AUDIENCE=758be5fcba2df784fdb4 AUTH_JWT_JWKS_URL=http://192.168.100.192:8870/.well-known/jwks # Casdoor -CASDOOR_BASE_URL=http://192.168.100.192:8870 +CASDOOR_BASE_URL=https://autht.well-trust.com # 与 Casdoor 里 Application「hxops-prod」(或你当前生产应用)的 Client ID 一致 CASDOOR_CLIENT_ID=758be5fcba2df784fdb4 CASDOOR_CLIENT_SECRET=522161bea5bb4f90b63f77c41dc26d223f1244ab # 兜底 redirect_uri;实际 OAuth 以浏览器地址为准,Casdoor「hxops-prod」应用须登记例如: # http://192.168.100.192:8881/casdoor-callback # http://ai.well-trust.com:8881/casdoor-callback -CASDOOR_REDIRECT_URI=http://192.168.100.192:8881/casdoor-callback +CASDOOR_REDIRECT_URI=https://ait.well-trust.com/casdoor-callback CASDOOR_SCOPE=openid profile email CASDOOR_ORGANIZATION=organization_HX # Casdoor Providers → wecom:Name 字段(截图即为 wecom);Organization=organization_HX,Sub type=Internal,Scope=snsapi_userinfo diff --git a/backend/app/services/chat/executors/base.py b/backend/app/services/chat/executors/base.py index 4ebae0f5..48c60277 100644 --- a/backend/app/services/chat/executors/base.py +++ b/backend/app/services/chat/executors/base.py @@ -38,6 +38,7 @@ def build_dify_inputs_for_context(ctx: ChatStreamContext) -> dict[str, Any]: session_id=str(getattr(ctx.session, 'session_id', '') or ''), request_id=ctx.request_id, trigger_source='frontend_chat', + user_role=str(getattr(ctx.user, 'role', '') or '').strip() or None, adapter_hints=ctx.adapter_hints, ) diff --git a/frontend/src/features/admin/modules/agents/components/AgentFormModal.vue b/frontend/src/features/admin/modules/agents/components/AgentFormModal.vue index ce734279..d7696e28 100644 --- a/frontend/src/features/admin/modules/agents/components/AgentFormModal.vue +++ b/frontend/src/features/admin/modules/agents/components/AgentFormModal.vue @@ -531,200 +531,202 @@ const handleTrainingQuestionTypeChange = (form: AgentFormState, index: number) = {{ form.training_workspace_enabled ? t('admin.agent.training.enableHint') : t('admin.agent.training.disabledHint') }}

-
-
- - -

{{ t('admin.agent.training.passScoreHint') }}

-
-
- -