mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
@@ -444,9 +444,12 @@ export async function chatWithText(
|
||||
app: TestingApp,
|
||||
sessionId: string,
|
||||
messageId?: string,
|
||||
prefix = ''
|
||||
prefix = '',
|
||||
retry?: boolean
|
||||
): Promise<string> {
|
||||
const query = messageId ? `?messageId=${messageId}` : '';
|
||||
const query = messageId
|
||||
? `?messageId=${messageId}` + (retry ? '&retry=true' : '')
|
||||
: '';
|
||||
const res = await app
|
||||
.GET(`/api/copilot/chat/${sessionId}${prefix}${query}`)
|
||||
.expect(200);
|
||||
|
||||
Reference in New Issue
Block a user