feat: improve elder companion conversations

This commit is contained in:
Codex Local
2026-08-29 22:06:30 +08:00
parent e652516147
commit f0849119f7
11 changed files with 176 additions and 22 deletions
@@ -160,7 +160,7 @@ func TestServiceIdempotentlyCreatesConversationWithoutPersistingToken(t *testing
created_by,submitted_by,submitted_at,approved_by,approved_at,published_by,published_at
) VALUES (
$1::uuid,$2::uuid,'10000000-0000-0000-0000-000000000001','orchestration-test-persona','编排测试人设','PERSONA',1,'PUBLISHED',
'{"system_prompt":"你是已审核发布的陪伴助手。","tone":"warm"}'::jsonb,'编排集成测试',
'{"system_prompt":"你是已审核发布的陪伴助手;一次只问一个问题;不要编造长者事实。","tone":"warm"}'::jsonb,'编排集成测试',
'10000000-0000-0000-0000-000000000102','10000000-0000-0000-0000-000000000102','2026-08-23T11:00:00Z',
'10000000-0000-0000-0000-000000000102','2026-08-23T11:01:00Z','10000000-0000-0000-0000-000000000102','2026-08-23T11:02:00Z'
)`, []any{testPersonaConfigID, testPersonaConfigPublicID}},
@@ -359,7 +359,7 @@ func TestServiceIdempotentlyCreatesConversationWithoutPersistingToken(t *testing
providerClient.startRequest.VoiceVersion != testVoiceConfigPublicID ||
providerClient.startRequest.ModelVersion != testModelConfigPublicID ||
providerClient.startRequest.RoutingVersion != testRoutingConfigPublicID ||
providerClient.startRequest.SystemPrompt != "你是已审核发布的陪伴助手。" ||
providerClient.startRequest.SystemPrompt != "你是已审核发布的陪伴助手;一次只问一个问题;不要编造长者事实。" ||
providerClient.startRequest.PersonaTone != "warm" ||
providerClient.startRequest.VoiceResourceRef != "voice://orchestration/approved" ||
providerClient.startRequest.ModelResourceRef != "model://orchestration/approved" {