Skip to content

Commit

Permalink
repro
Browse files Browse the repository at this point in the history
  • Loading branch information
zintus committed Dec 20, 2023
1 parent 44376cb commit c209a0d
Show file tree
Hide file tree
Showing 3 changed files with 376 additions and 0 deletions.
5 changes: 5 additions & 0 deletions esm-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ app.listen(PORT, HOST, function() {
const host = addr.family === 'IPv6' ? `[${addr.address}]` : addr.address
console.log('Server started at http://%s:%s', host, addr.port)
})
import OpenAI from "openai";

app.get('/', function(req, res) {
res.send('Hello world')
Expand All @@ -18,6 +19,10 @@ app.get('/', function(req, res) {
app.get('/user/:id', function(req, res) {
res.send(`Reflected back the user id of ${req.params.id}`)
})
const openai = new OpenAI(process.env.OPENAI_API_KEY);
openai.get("engines", (err, response) => {
console.log(response);
});

app.get('/instrumentation-example', function(req, res) {
const instrumentedUrl = normalizeUrl('test:[email protected]')
Expand Down
Loading

0 comments on commit c209a0d

Please sign in to comment.