TypeScript API Reference
Imports
JoyTokenClient
chat.completions.create
Calls POST /openai/v1/chat/completions and returns a non-streaming Chat Completions response.
chat.completions.stream
Calls the same endpoint and reads SSE chunks.
models.list
Calls GET /api/v1/models.