LLM-Red-Team / kimi-free-api

🚀 KIMI AI 长文本大模型逆向API白嫖测试【特长:长文本解读整理】,支持高速流式输出、智能体对话、联网搜索、长文档解读、图像OCR、多轮对话,零配置部署,多路token支持,自动清理会话痕迹。
https://udify.app/chat/Po0F6BMJ15q5vu2P
GNU General Public License v3.0
3.74k stars 609 forks source link

Vercel 部署后访问 404 #99

Closed ssfun closed 5 months ago

ssfun commented 5 months ago

页面报错 404: NOT_FOUND Code: NOT_FOUND ID: hkg1::dch6n-1715418987679-8f43eed8e825

post 请求报 The page could not be found

Vinlic commented 5 months ago

使用文档中的命令行部署方式,不能在vercel上面直接点击部署

ssfun commented 5 months ago

用的 GitHub actions ,应该也算是命令行吧?

name: Deploy Kimi to Vercel

on:
  workflow_dispatch:

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
    - name: Setup Node.js
      uses: actions/setup-node@v2
      with:
        node-version: '20'

    - name: Install Vercel CLI
      run: npm i -g vercel --registry http://registry.npmmirror.com

    - name: Clone repository
      run: git clone https://github.com/LLM-Red-Team/kimi-free-api

    - name: Change directory
      run: cd kimi-free-api

    - name: Deploy to Vercel
      run: vercel --prod --token ${{ secrets.VERCEL_TOKEN }} --yes --name kimi-free-api
      env:
        VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
Vinlic commented 5 months ago

可以尝试在本地调用部署测试原因,我们测试是正常的

jinde98 commented 5 months ago

用的 GitHub actions ,应该也算是命令行吧?

name: Deploy Kimi to Vercel

on:
  workflow_dispatch:

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
    - name: Setup Node.js
      uses: actions/setup-node@v2
      with:
        node-version: '20'

    - name: Install Vercel CLI
      run: npm i -g vercel --registry http://registry.npmmirror.com

    - name: Clone repository
      run: git clone https://github.com/LLM-Red-Team/kimi-free-api

    - name: Change directory
      run: cd kimi-free-api

    - name: Deploy to Vercel
      run: vercel --prod --token ${{ secrets.VERCEL_TOKEN }} --yes --name kimi-free-api
      env:
        VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}

你这个成功了吗,我本地部署到vercel也是404.

ssfun commented 5 months ago

用的 GitHub actions ,应该也算是命令行吧?

name: Deploy Kimi to Vercel

on:
  workflow_dispatch:

jobs:
  deploy:
    runs-on: ubuntu-latest

    steps:
    - name: Setup Node.js
      uses: actions/setup-node@v2
      with:
        node-version: '20'

    - name: Install Vercel CLI
      run: npm i -g vercel --registry http://registry.npmmirror.com

    - name: Clone repository
      run: git clone https://github.com/LLM-Red-Team/kimi-free-api

    - name: Change directory
      run: cd kimi-free-api

    - name: Deploy to Vercel
      run: vercel --prod --token ${{ secrets.VERCEL_TOKEN }} --yes --name kimi-free-api
      env:
        VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}

你这个成功了吗,我本地部署到vercel也是404.

这个是失败的

moviewang commented 5 months ago

本地部署需要先npm run build 再执行vercel --prod就可以了