mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 03:56:23 +08:00
feat: update ppt prompt (#7446)
This commit is contained in:
@@ -97,7 +97,7 @@ test.beforeEach(async t => {
|
||||
]);
|
||||
|
||||
for (const p of prompts) {
|
||||
await prompt.set(p.name, p.model, p.messages);
|
||||
await prompt.set(p.name, p.model, p.messages, p.config);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -379,7 +379,7 @@ test('should be able to chat with api by workflow', async t => {
|
||||
const ret = await chatWithWorkflow(app, token, sessionId, messageId);
|
||||
t.is(
|
||||
array2sse(sse2array(ret).filter(e => e.event !== 'event')),
|
||||
textToEventStream(['generate text to text stream'], messageId),
|
||||
textToEventStream('generate text to text stream', messageId),
|
||||
'should be able to chat with workflow'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -792,9 +792,7 @@ test('should be able to run workflow', async t => {
|
||||
}
|
||||
t.assert(result, 'generate text to text stream');
|
||||
|
||||
// presentation workflow has condition node, it will always false
|
||||
// so the latest 2 nodes will not be executed
|
||||
const callCount = graph!.graph.length - 2;
|
||||
const callCount = graph!.graph.length;
|
||||
t.is(
|
||||
executor.callCount,
|
||||
callCount,
|
||||
@@ -810,7 +808,7 @@ test('should be able to run workflow', async t => {
|
||||
|
||||
t.is(
|
||||
params.args[1].content,
|
||||
'generate text to text stream',
|
||||
'apple company',
|
||||
'graph params should correct'
|
||||
);
|
||||
t.is(
|
||||
|
||||
Reference in New Issue
Block a user