Skip to content

Commit

Permalink
fix formatting, and dont run all release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronvg committed Dec 11, 2024
1 parent f117ad9 commit 5afd5df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ on:
tags:
- "test-release/*.*"
- "*.*"
branches: []
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -49,7 +48,7 @@ jobs:
- build-vscode-release
steps:
- run: echo "::do-nothing::" >/dev/null

publish-to-pypi:
environment: release
needs: [all-builds]
Expand Down Expand Up @@ -221,4 +220,4 @@ jobs:
cd typescript/vscode-ext/packages
pnpm vsce publish --packagePath ./out/*.vsix
env:
VSCE_PAT: ${{ secrets.VSCODE_PAT }}
VSCE_PAT: ${{ secrets.VSCODE_PAT }}
3 changes: 1 addition & 2 deletions typescript/vscode-ext/packages/vscode/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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)
Expand Down

0 comments on commit 5afd5df

Please sign in to comment.