mirror of
https://github.com/hanzoai/kai.git
synced 2026-10-17 11:18:06 +00:00
The Python and TypeScript examples imported a client that hanzoai does not ship: `from hanzoai import Hanzo` and `import Hanzo from 'hanzoai'` both fail on 8.5.704, so none of them ran. They now call AiApi.post_decisions / postDecisions, which builds every question shape the cookbook uses (choice with object or list criteria, score, noul), and package.json and requirements.txt pin the version that was checked. The noul examples read action.act_probability, which the API does not return; they print P(true) only. A failed TypeScript call now rethrows only its HTTP status and body, because the axios error holds the request's Authorization header and an uncaught one prints it. The raw HTTP clients drop model ids the API refuses and exit non-zero on failure. Co-authored-by: Hanzo Dev <[email protected]>
3 lines
26 B
Plaintext
3 lines
26 B
Plaintext
hanzoai==8.5.704
|
|
requests
|