Use this file to discover all available pages before exploring further.
Basic usage
Send a question with context to a model to generate an answer
import Bytez from 'bytez.js';// insert your keyconst sdk = new Bytez('BYTEZ_KEY');// choose your modelconst model = sdk.model('deepset/roberta-base-squad2');// provide the model with inputconst input = { "question": "Where does Holly live?", "context": "My name is Holly and I live in NYC"};// send to the modelconst { error, output } = await model.run(input);// observe the outputconsole.log({ error, output });