yibie/laya-jev-lab on GitHub
- Stars
- 9
- Forks
- 3
- Language
- Python
- License
- MIT
- Last push
- 20 Sep 2026
Read from GitHub on . Counts change daily.
How it uses Jev
const res = await fetch("https://api.typesafe.ai/v1/systemone", {
method: "POST",
headers: { authorization: `Bearer ${KEY}`, "content-type": "application/json" },
body: JSON.stringify({ state: text, model: "jev-latest",
questions: { q: { type: "choice", instructions: "这条客服消息属于哪个类别?", criteria } } }),
});
const j = await res.json();
if (res.status !== 200) { err = `HTTP ${res.status}: ${JSON.stringify(j).slice(0,100)}`; }
else { r = j.answers.q; }
