diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8e2572e0..62c6d3f6f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,6 @@ on: tags: - "test-release/*.*" - "*.*" - branches: [] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -49,7 +48,7 @@ jobs: - build-vscode-release steps: - run: echo "::do-nothing::" >/dev/null - + publish-to-pypi: environment: release needs: [all-builds] @@ -221,4 +220,4 @@ jobs: cd typescript/vscode-ext/packages pnpm vsce publish --packagePath ./out/*.vsix env: - VSCE_PAT: ${{ secrets.VSCODE_PAT }} \ No newline at end of file + VSCE_PAT: ${{ secrets.VSCODE_PAT }} diff --git a/typescript/vscode-ext/packages/vscode/src/extension.ts b/typescript/vscode-ext/packages/vscode/src/extension.ts index 022fa1116..fdd277171 100644 --- a/typescript/vscode-ext/packages/vscode/src/extension.ts +++ b/typescript/vscode-ext/packages/vscode/src/extension.ts @@ -223,7 +223,7 @@ export function activate(context: vscode.ExtensionContext) { on: { proxyReq: (proxyReq, req, res) => { console.log('proxying request') - + try { const bamlOriginalUrl = req.headers['baml-original-url'] if (bamlOriginalUrl === undefined) { @@ -245,7 +245,6 @@ export function activate(context: vscode.ExtensionContext) { // proxyReq.removeHeader('origin') // proxyReq.setHeader('Origin', targetUrl.origin) console.info('Proxying an LLM request (to bypass CORS)', { proxyReq, req, res }) - } catch (err) { // This is not console.warn because it's not important console.log('baml-original-url is not parsable', err)