Files
ai-chat-app/README.md
hubian 47a46bd5ea feat: AI对话助手移动端应用
- 智谱 GLM-4.5-Air 大模型接口
- 移动端优化聊天界面
- Capacitor 支持 Android/iOS 打包
- PWA 配置,可添加到主屏幕
- 多对话管理
- 流式输出
- Markdown格式显示
- 复制、重新生成、删除功能
- 端口: 19021
2026-04-25 23:29:41 +08:00

56 lines
1006 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AI对话助手移动端应用
基于 Capacitor 的 AI 对话助手,可打包为 Android/iOS 应用。
## 功能
- 💬 AI 对话(智谱 GLM-4.5-Air
- 📱 移动端优化界面
- 💾 本地对话历史
- 🚀 一键打包 APK/IPA
## 开发
```bash
# 安装依赖
npm install
# 启动本地服务器
npm run dev
# 访问 http://localhost:19019
```
## 打包移动端
```bash
# 添加平台
npx cap add android
npx cap add ios
# 同步代码
npm run build:android
npm run build:ios
# 打开原生项目
npm run open:android # 需要 Android Studio
npm run open:ios # 需要 Xcode (macOS)
```
## 配置
- 端口: 19019
- 模型: GLM-4.5-Air
- API: 智谱开放平台
## 目录结构
```
www/ # 前端代码
├── index.html # 主页面
├── app.js # 应用逻辑
├── style.css # 样式
└── manifest.json # PWA 配置
android/ # Android 项目(自动生成)
ios/ # iOS 项目(自动生成)
```