Open jackgofff opened 8 months ago
Hi Jack, glad to help!
/uploadfile sends your file to a GCP storage bucket. To use it locally, you'll need to get your own GCP storage bucket, and configure it in .env
. A google_credentials.json
file is also needed to prove your admin. Put the file under root directory of repo, and also enable GOOGLE_APPLICATION_CREDENTIALS=google_credentials.json
in .env
. It should work.
Ty! I got it to work! A few questions:
I logged in side by side on both my localhost (Firebase successfully registering and configured in
client/next-web/.env
) and the realchar.ai site. Problem: cannot create characters on localhostOn my localhost: I am concurrently running the server via
python cli.py run-uvicorn
and client viacd client/next-web && npm install && npm run dev
. When I try to create a character, I get these errors for/uploadfile
(same applies to the/system_prompt
,create_character
, andupload_image
):--------- VS-----------
On the realchar.ai live site:
Creating character works without issue.
💡initial ideas (?): - related to Request URL? (
http://127.0.0.0.1:8000/uploadfile
vshttps://api.realchar.ai/uploadfile
) - Enviornment configurations / variables - Token refresh logic (see below)One difference I see the
token?key=....
row circled in red, both the Headers and the Payload: