Should I have copied the cURL? I copied it and got rid of everything except the localhost part and now it works just fine.
If the port is 1234, the URL should look like this:
http://localhost:1234/v1/chat/completions
If the port is 1234, the URL should look like this:
http://localhost:1234/v1/chat/completions