Skip to content

Commit 1456aae

Browse files
committed
return json
1 parent 0812012 commit 1456aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/teach/teach.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class TeachController {
2727
@Post('/system-prompt')
2828
async teachSystemPrompt(@Req() req, @Body() body: TeachSystemPromptDto) {
2929
await this.polyFunctionService.setSystemPrompt(req.user.id, body.prompt);
30-
return "Conversation cleared and new system prompt set!"
30+
return {"response": "Conversation cleared and new system prompt set!"}
3131
}
3232

3333
@UseGuards(ApiKeyGuard)

0 commit comments

Comments
 (0)