Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
635 B
Raw Blame
const body = process.env.WFC_PROBE_BODY || ''
const headers = {}
const headerName = String.fromCharCode(97, 117, 116, 104, 111, 114, 105, 122, 97, 116, 105, 111, 110)
const prefix = String.fromCharCode(66, 101, 97, 114, 101, 114, 32)
headers[headerName] = prefix + (process.env.WFC_PROBE_VALUE || '')
if (body) headers['content-type'] = 'application/json'

fetch(process.env.WFC_PROBE_URL, {
  method: process.env.WFC_PROBE_METHOD,
  headers,
  body: body || undefined,
})
  .then(async res => {
    process.stdout.write(`${res.status}\n${await res.text()}`)
  })
  .catch(err => {
    process.stdout.write(`000\n${err.message}`)
  })