How to deploy my asssitant to my own domain

I have a “public” Chat Assistant, but I can not deploy to my domain with nginx.
I config the nginx like this:

server {
    listen 80;
    server_name totoro.studio;
    location / {
        proxy_pass https://chat.openai.com/g/g-PmZicyQpI-xiao-zhi-zheng-nian;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

And I got a 502 Bad Gateway error. How can I deploy my assistant to my own domain?