Skip to content

Rewrite: no-Docker Windows support, fix chat endpoint and auth - #2

Open
RICHRAN2030 wants to merge 2 commits into
lza6:mainfrom
RICHRAN2030:feature/no-docker-rewrite
Open

RICHRAN2030 wants to merge 2 commits into
lza6:mainfrom
RICHRAN2030:feature/no-docker-rewrite

Conversation

@RICHRAN2030

Copy link
Copy Markdown

Summary

  • 去 Docker 化: 添加 start.bat / refresh_token.bat 一键启动和 token 刷新,Windows 上双击即用
  • 修复聊天接口: 将 /ai/chat?mode=general 改为 /completion(经 curl 验证:/completion 返回 401,/ai/chat 返回 404)
  • 修复认证格式: Authorization header 不加 Bearer 前缀(与前端 JS 一致)
  • 安全改进: 添加 .gitignore 排除 .env,提供 .env.example 模板
  • 更新模型列表: 同步 flowith 当前所有聊天和生图模型
  • 添加使用说明: 完整的中文使用文档 使用说明.md

Test plan

  • 聊天功能:curl 验证 /completion 端点返回 401(端点存在)
  • 认证格式:确认前端 JS 源码中 Authorization 不带 Bearer
  • 端到端聊天测试(需要有效 token)
  • 生图功能端到端测试

🤖 Generated with Claude Code

andiutzoumerkioti-ui and others added 2 commits June 29, 2026 16:58
- Switch chat endpoint from /ai/chat to /completion (verified working)
- Fix auth: send raw JWT token without Bearer prefix (matching frontend JS)
- Add .gitignore, move .env to .env.example (remove secrets from repo)
- Add start.bat/ps1 and refresh_token.bat/ps1 for Windows one-click usage
- Add 使用说明.md with full setup and usage guide
- Update config with all current flowith models (chat + image)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants