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'const sdk = new Bytez("BYTEZ_KEY");const model = sdk.model("almanach/camembert-base");await model.create()const { error, output } = await model.run("The capital of France is <mask>.");console.log({ error, output })