|
|
7 ay önce | |
|---|---|---|
| src | 7 ay önce | |
| .env.example | 7 ay önce | |
| .gitignore | 7 ay önce | |
| README.md | 7 ay önce | |
| index.html | 7 ay önce | |
| netlify.toml | 7 ay önce | |
| package-lock.json | 7 ay önce | |
| package.json | 7 ay önce | |
| postcss.config.js | 7 ay önce | |
| tailwind.config.js | 7 ay önce | |
| test-ai.js | 7 ay önce | |
| tsconfig.json | 7 ay önce | |
| tsconfig.node.json | 7 ay önce | |
| vite.config.ts | 7 ay önce |
一个基于 AI 的智能菜谱生成平台,让不同菜系的厨艺大师为您量身定制美味佳肴。
src/
├── components/ # 组件目录
│ └── RecipeCard.vue # 菜谱卡片组件
├── config/ # 配置文件
│ └── cuisines.ts # 菜系配置
├── services/ # 服务层
│ └── aiService.ts # AI接口服务
├── types/ # 类型定义
│ └── index.ts # 通用类型
├── views/ # 页面组件
│ └── Home.vue # 主页面
├── App.vue # 根组件
├── main.ts # 入口文件
└── style.css # 全局样式
npm install
npm run dev
npm run build
项目已配置智谱 AI 接口,开箱即用:
const AI_CONFIG = {
baseURL: 'https://open.bigmodel.cn/api/paas/v4/',
apiKey: 'a835b9f6866d48ec956d341418df8a50.NuhlKYn58EkCb5iP',
model: 'glm-4-flash-250414',
temperature: 0.7,
timeout: 30000
}
如需更换其他 AI 服务,请修改 src/services/aiService.ts 中的配置。
欢迎提交 Issue 和 Pull Request 来帮助改进项目!
MIT License