Skip to content

Commit

Permalink
feat: add prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
KieSun committed Mar 23, 2023
1 parent 53dedf2 commit 8adc6c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/SwitchPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ interface IProps {
}

const prompt = {
'Custom prompt': '',
'Write js code': '接下来你需要扮演一个编程专家,我会将需求发给你,你需要告诉我如何用 javascript 实现。',
'Explain code': '接下来你需要扮演一个编程专家,我会将代码发给你,只需要为我解释这段代码做了什么。',
'Write unit test use jest': '你现在是一个编程专家,接下来我会将代码发给你,请帮我使用 jest 写一个单元测试,请至少提供五个测试案例,同时要包含到极端的状况,让我能够确定这段程式码的输出是正确的。',
Expand Down

0 comments on commit 8adc6c1

Please sign in to comment.