Predict missing words in a sentence for tasks like text completion, language modeling, and text generation
Basic usage
Send a masked sentence to a model to predict the missing word
Copy
import Bytez from 'bytez.js';// insert your keyconst sdk = new Bytez('BYTEZ_KEY');// choose your modelconst model = sdk.model('almanach/camembert-base');// provide the model with inputconst input = "The capital of France is <mask>.";// send to the modelconst { error, output } = await model.run(input);// observe the outputconsole.log({ error, output });