diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..e570b8b --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +OPENAI_API_KEY= diff --git a/README.md b/README.md index f22158e..a0bcc55 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # AI Couplets - AI 对联/春联 +## Todo + +- [ ] 分享春联 + ## Dev ```bash diff --git a/components/AiPrompt.vue b/components/AiPrompt.vue index a1da9b0..66625f2 100644 --- a/components/AiPrompt.vue +++ b/components/AiPrompt.vue @@ -1,5 +1,19 @@ @@ -8,12 +22,18 @@ const app = useAppStore() v-model="app.prompt" placeholder="想要什么样的春联?" class="w-full rounded-lg p-4 shadow dark:bg-dark-800 outline-none!" - border="~ gray focus:(blue-500)" + border="~ gray focus:(yellow-500)" maxlength="200" /> - - 生成! + + {{ app.loading ? '生成中...' : '生成春联' }} + diff --git a/components/SpringFestivalCouplets.vue b/components/SpringFestivalCouplets.vue index 450408a..0853852 100644 --- a/components/SpringFestivalCouplets.vue +++ b/components/SpringFestivalCouplets.vue @@ -1,7 +1,15 @@ - + AI 春联 @@ -14,7 +15,7 @@ - +