Okay, on first glance, it seems good. Can you open the dev logs, turn on verbose logging and try starting a game in Formamorph? It might tell us why the AI can't process the information.
If the port is 1234, the URL should look like this:
http://localhost:1234/v1/chat/completions