Open zhenwu0831 opened 8 months ago
On which url did you deploy the FastAPI server sotopia-chat?
Assuming you can already run sotopia experiments. Here are the steps you can take:
.env
pnpm install
and then pnpm dev
. The default url is localhost:3000. Visit http://localhost:3000
Hi @ProKil Thank you! I think it's step 1 about setting up the fastapi server that throws me off a bit. The port is already set to 8000 as in sotopia/sotopia/lmlib/api_service/main.py, but I'm not sure about the command / exact place to run the fastapi server...
Hi,
I followed the steps in readme to set up the environment variables and try to run locally. Here are the steps I took and the error when accessing localhost:3000:
Steps: 1) create a new project (linked to github, deployed) and a KV instance on Vercel ; 2) follow the run locally guidance: Install Vercel CLI:
npm i -g vercel
Link local instance with Vercel and GitHub accounts (creates .vercel directory):vercel link
Download your environment variables:vercel env pull
3) change .env.example to .env, and fill out all the credentials; 4) set const SOTOPIA_SERVER_URL = "http://localhost:3000"; 5) runpnpm install pnpm dev
And this is the log from the vercel project log page: