feat: 在顶栏并排展示下发智能体并直接切换
This commit is contained in:
@@ -1405,6 +1405,8 @@ describe('project consultations with selected cloud teachers', () => {
|
||||
const topic = await f.service.create(scope, undefined, undefined, runtime === 'yuxi' ? 9 : undefined);
|
||||
expect(topic.role).toBeUndefined();
|
||||
expect(topic.definition.teacher_id).toBe('coding-teacher');
|
||||
expect((await f.service.list(scope)).items.find((item) => item.id === topic.id)?.teacherId)
|
||||
.toBe(runtime === 'yuxi' ? 'cloud-teacher' : undefined);
|
||||
await f.service.send(scope, topic.id, { requestId: crypto.randomUUID(), text: '你觉得怎么样?', sourceConversationId: f.scope.sourceId });
|
||||
const messages = f.run.mock.calls[0][0];
|
||||
expect(messages[0].content).not.toContain(TEACHER_BEHAVIOR_PROMPT);
|
||||
|
||||
Reference in New Issue
Block a user