https://www.boundaryml.com logo
r
Any advice on debugging the BAML Playgound in VS Code? The playgound isn't hitting my model endpoint (litellm running in another dev container), but I can copy the cURL command, run it in my terminal, and it works just fine
a
Try disabling the vscode proxy in the setting
And open the vscode webview developer toold network tab
It should hit your endpoint directly if the baseurl is set on the client
You can also try to run tests using baml-cli test
r
baml-cli test
works. I wasn't aware of the develop tools... checking it out now
I'm seeing this in the console:
Copy code
baml_schema_build.js:2 
 POST http://host.docker.internal:4000/v1/chat/completions net::ERR_CONNECTION_REFUSED
Also, I tried to do a "fetch" from the Developers Tools console and got this error message:
Copy code
VM605:1 Refused to connect to 'http://host.docker.internal:4000/v1/chat/completions' because it violates the following Content Security Policy directive: "connect-src 'self'
                    https:
                    ws:".
a
Ah theres sometjing wrong with our webview permission. We will patch this in the next release, sorry!