Deploy OpenAvatarChat to Runpod with Docker image setup#1
Deploy OpenAvatarChat to Runpod with Docker image setup#1
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@copilot try it now ive restarted the runpod |
Co-authored-by: lukecarniege <244867857+lukecarniege@users.noreply.github.com>
I've created the comprehensive Runpod deployment guide at
Your Runpod URL |
|
@copilot how come i cant see it on github |
The file is on the PR branch In the PR: Click on the "Files changed" tab in this PR to see The changes will appear on the main branch after you merge this PR. |
|
@copilot merge it to the main |
I'm not able to merge PRs directly. You'll need to merge this PR yourself by clicking the "Merge pull request" button at the bottom of this PR page on GitHub. Once merged, the |
|
@copilot save this as a new repo |
|
@copilot save this as new repo |
I'm not able to create new repositories. To save this as a new repo, you can:
Alternatively, just merge this PR and the deployment guide will be part of your existing |
|
@copilot so what repo is this |
This is your repository: lukecarniege/OpenAvatarChat1 URL: https://github.com/lukecarniege/OpenAvatarChat1 This PR is on the branch |
|
@copilot can you push it to vercel or tell me how to |
OpenAvatarChat is not suitable for Vercel. It requires:
Vercel is designed for static sites and serverless functions, not GPU-intensive AI applications. Your best option is Runpod (which you already have set up at If you want a public-facing URL, you can use Runpod's proxy URL or set up a custom domain pointing to your Runpod instance. |
|
@copilot complete the frontend |
The frontend is already included as a git submodule at It's initialized when you run: git submodule update --init --recursive --depth 1Could you clarify what you mean by "complete the frontend"? Are you looking to:
|
|
@copilot Update the OpenAvatarChat frontend to connect to the RunPod backend URL https://2nlt0ao42gkivj-8888.proxy.runpod.net for production deployment to Vercel. TASKS: Update vite.config.ts: Replace lines 8-10 with: const serverURL = 'https://2nlt0ao42gkivj-8888.proxy.runpod.net' declare const BACKEND_URL: string export const API_BASE_URL = import.meta.env.PROD export const getApiUrl = (path: string) => { export const getWsUrl = (path: string) => { Add at the top: declare const BACKEND_URL: string Add import: import { getApiUrl } from '@/config/api' Add import: import { getApiUrl } from '@/config/api' VERIFICATION: After changes, the frontend should make production requests to https://2nlt0ao42gkivj-8888.proxy.runpod.net when built, and use local proxy during development |
Co-authored-by: lukecarniege <244867857+lukecarniege@users.noreply.github.com>
I've made all the requested frontend changes locally (commit b23b0a1), but there's an issue: the frontend is a git submodule pointing to Your options:
The changes I made:
|
Adds comprehensive Runpod deployment documentation for OpenAvatarChat with Windows PowerShell commands, and updates the frontend to connect to the RunPod backend for production deployment.
Changes Made
Deployment Documentation
Created
docs/RUNPOD_DEPLOYMENT.mdwith complete deployment instructions including:--depth 1for faster cloningchat_with_openai_compatible_bailian_cosyvoice.yamlconfig./models,./config,./ssl_certs,./builddirectories.envfile using--env-fileflaglukecarniege/open-avatar-chat:0.0.1DASHSCOPE_API_KEY,PYTHONUNBUFFERED)Frontend Updates (Local Changes)
Updated the frontend submodule to connect to the RunPod backend URL for production deployment:
https://2nlt0ao42gkivj-8888.proxy.runpod.netas the server URL withdefineblock for__BACKEND_URL__getApiUrl()andgetWsUrl()helpers__BACKEND_URL__global declarationgetApiUrl()for/openavatarchat/initconfigendpointgetApiUrl()for/webrtc/offerendpointsRunpod Access URL
Quick Start
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.