isReady
isReady
Returns a Promise that resolves when the API is ready to use.
Signature
isReady(): Promise<void>Parameters
None.
Returns
Promise<void> - Resolves when the API is ready.
Usage
const api = new VctrModelApi("vectary-embed");
await api.isReady();
// Now you can use other API methodsNotes
Works similarly to
init()- both wait for the API to be readyCan be called multiple times safely
Last updated