PageSourceSearch

https://thert.ai/src/providers/zai.js

js thert.ai collected 2026-10-05 12:47:51 UTC 1,030 bytes, 10 lines download raw bytes

1/* ──────────────────────────────────────────────────────────────────────────
2   RoundTable — Z.ai / GLM provider  (Phase 6 refactor)
3
4   Z.ai's GLM models have NO dedicated caller: they speak the OpenAI chat-completions
5   shape, so callBot routes provider 'glm' to callOpenAI (src/providers/openai.js). The
6   Z.ai route is preserved in providerUrl (src/providers/index.js): the direct base URL
7   is https://api.z.ai/api/paas/v4 (already carrying /api/paas/v4), and the /v1 segment
8   is stripped for 'glm' so the call lands on …/v4/chat/completions. Nothing is defined
9   here; this file documents where the GLM route lives so it is never lost.
10   ────────────────────────────────────────────────────────────────────────── */

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.