Javascript
import Morphik from 'morphik'; const client = new Morphik({ apiKey: 'My API Key', }); const completionResponse = await client.cache.query('name', { query: 'query' }); console.log(completionResponse.completion);
{ "completion": "<string>", "usage": {}, "finish_reason": "<string>", "sources": [], "metadata": {} }
Generate a completion using a pre-populated cache.
Successful Response
Response from completion generation
Show child attributes
Was this page helpful?