feat: update ppt prompt (#7446)

This commit is contained in:
darkskygit
2024-07-08 08:11:30 +00:00
parent bf6c9a5955
commit 556956ced2
6 changed files with 28 additions and 66 deletions
+2 -2
View File
@@ -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'
);
});