Skip to main content
Initializes the SDK with your client configuration. Must be called once before any mountChat() call. Returns this for chaining. Calling init() a second time without calling unmountAll() first logs a warning and is a no-op — the first config wins.

Parameters

string
required
Your partner client ID, issued by PastpaperLM. This is a public identifier — not a secret. Identifies your app to PastpaperLM’s servers for session scoping and revenue attribution.
object
Visual configuration for the EPIS embed. All fields are optional — omitted fields fall back to sensible defaults or are derived automatically.
'en' | 'si' | 'ta'
default:"'en'"
Interface language. 'si' = Sinhala, 'ta' = Tamil. Controls EPIS’s response language and UI strings.
string
default:"'machan'"
EPIS teaching persona. 'machan' is the friendly peer persona. Other personas may be available — contact us for options.
'lite' | 'bright'
default:"'lite'"
AI model tier for chat. 'lite' is faster and cheaper (Gemini Flash). 'bright' is more capable for complex questions (Gemini Pro). Users are billed at the rate of the selected model.

Examples