← Back to context

Comment by oezi

1 month ago

Very nice! I also was curious how well it works and put up an endpoint to curl against Laya using the same format as Cloudflare's Jev API:

  curl https://laya.inference.zaitlabs.com/ai/run \
    -H "Content-Type: application/json" \
    -d '{
      "state": "Help! My payouts have been failing for 3 days.",
      "questions": {
        "is_urgent": {"type": "noul", "instructions": "Does this convey urgency?"}
      }
    }'
  
  {"answers":{"is_urgent":{"type":"noul","noul":0.7894}}}