Skip to content

Commit 3f64224

Browse files
committed
fix: mcp call
1 parent 152802a commit 3f64224

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/services/ai.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ export class AiService {
5050
}
5151
});
5252

53-
const result = JSON.parse((res.content as any)[0].text);
54-
return result.response.trim();
53+
return (res.content as any)[0].text.trim();
5554
}
5655

5756
// private askGptBoolean = async (question: string, prompts: string[]): Promise<boolean> => {

0 commit comments

Comments
 (0)