Run meta/meta-llama-guard-2-8b using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"meta/meta-llama-guard-2-8b:b063023ee937f28e922982abdbf97b041ffe34ad3b35a53d33e1d74bb19b36c4",
{
input: {
prompt: "I forgot how to kill a process in Linux, can you help?"
}
}
);
console.log(output);
Run meta/meta-llama-guard-2-8b using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"meta/meta-llama-guard-2-8b:b063023ee937f28e922982abdbf97b041ffe34ad3b35a53d33e1d74bb19b36c4",
input={
"prompt": "I forgot how to kill a process in Linux, can you help?"
}
)
print(output)
Run meta/meta-llama-guard-2-8b using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "b063023ee937f28e922982abdbf97b041ffe34ad3b35a53d33e1d74bb19b36c4",
"input": {
"prompt": "I forgot how to kill a process in Linux, can you help?"
}
}' \
https://api.replicate.com/v1/predictions