Skip to content

Commit

Permalink
uncommented error catch
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-palakurthi committed Jun 13, 2024
1 parent ae0bdbc commit e0dad87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions typescript/fiddle-proxy/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ app.use(
proxyReq.setHeader('x-api-key', process.env.ANTHROPIC_API_KEY)
}
if (req.headers['baml-original-url'].includes('gemini')) {
// if (process.env.GOOGLE_API_KEY === undefined) {
// throw new Error('GOOGLE_API_KEY is missing')
// }
if (process.env.GOOGLE_API_KEY === undefined) {
throw new Error('GOOGLE_API_KEY is missing')
}
proxyReq.setHeader('x-goog-api-key', process.env.GOOGLE_API_KEY)
}
},
Expand Down

0 comments on commit e0dad87

Please sign in to comment.