typetext
{
"max_new_tokens": 512,
"prompt": "[\n {\n \"role\": \"system\",\n \"content\": \"You are a helpful assistant.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"What is Slite?\"\n }\n ]",
"temperature": 0.75,
"top_k": 50,
"top_p": 0.9
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_6D8**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run antoinelyset/openhermes-2-mistral-7b using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"antoinelyset/openhermes-2-mistral-7b:8b1782b697a9f67a3ddf1499a4bbcc69a8ba8d18b6274c47847d62881f607f05",
{
input: {
max_new_tokens: 512,
prompt: "[\n {\n \"role\": \"system\",\n \"content\": \"You are a helpful assistant.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"What is Slite?\"\n }\n ]",
temperature: 0.75,
top_k: 50,
top_p: 0.9
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_6D8**********************************
This is your API token. Keep it to yourself.
import replicate
Run antoinelyset/openhermes-2-mistral-7b using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"antoinelyset/openhermes-2-mistral-7b:8b1782b697a9f67a3ddf1499a4bbcc69a8ba8d18b6274c47847d62881f607f05",
input={
"max_new_tokens": 512,
"prompt": "[\n {\n \"role\": \"system\",\n \"content\": \"You are a helpful assistant.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"What is Slite?\"\n }\n ]",
"temperature": 0.75,
"top_k": 50,
"top_p": 0.9
}
)
# The antoinelyset/openhermes-2-mistral-7b model can stream output as it's running.
# The predict method returns an iterator, and you can iterate over that output.
for item in output:
# https://replicate.com/antoinelyset/openhermes-2-mistral-7b/api#output-schema
print(item, end="")
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_6D8**********************************
This is your API token. Keep it to yourself.
Run antoinelyset/openhermes-2-mistral-7b 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": "antoinelyset/openhermes-2-mistral-7b:8b1782b697a9f67a3ddf1499a4bbcc69a8ba8d18b6274c47847d62881f607f05",
"input": {
"max_new_tokens": 512,
"prompt": "[\\n {\\n \\"role\\": \\"system\\",\\n \\"content\\": \\"You are a helpful assistant.\\"\\n },\\n {\\n \\"role\\": \\"user\\",\\n \\"content\\": \\"What is Slite?\\"\\n }\\n ]",
"temperature": 0.75,
"top_k": 50,
"top_p": 0.9
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Slite is a collaborative workspace for teams that provides a centralized platform for creating, organizing, and sharing documents, notes, and files. It is designed to help teams improve their productivity, communication, and knowledge management. Slite offers features such as real-time collaboration, task management, note-taking, document organization, and search functionality, making it easy for team members to access and work on documents together.
{
"id": "n25q3wtbjbefplybohc3acamji",
"model": "antoinelyset/openhermes-2-mistral-7b",
"version": "8b1782b697a9f67a3ddf1499a4bbcc69a8ba8d18b6274c47847d62881f607f05",
"input": {
"max_new_tokens": 512,
"prompt": "[\n {\n \"role\": \"system\",\n \"content\": \"You are a helpful assistant.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"What is Slite?\"\n }\n ]",
"temperature": 0.75,
"top_k": 50,
"top_p": 0.9
},
"logs": "The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's `attention_mask` to obtain reliable results.\nSetting `pad_token_id` to `eos_token_id`:32000 for open-end generation.",
"output": [
"",
"",
"Slite ",
"is ",
"a ",
"",
"collaborative ",
"workspace ",
"for ",
"teams ",
"that ",
"provides ",
"a ",
"",
"centralized ",
"platform ",
"for ",
"",
"creating, ",
"",
"",
"organizing, ",
"and ",
"sharing ",
"",
"documents, ",
"",
"notes, ",
"and ",
"",
"files. ",
"It ",
"is ",
"designed ",
"to ",
"help ",
"teams ",
"improve ",
"their ",
"",
"productivity, ",
"",
"communication, ",
"and ",
"knowledge ",
"",
"management. ",
"",
"Slite ",
"offers ",
"features ",
"such ",
"as ",
"",
"",
"real-time ",
"",
"collaboration, ",
"task ",
"",
"management, ",
"",
"",
"",
"",
"note-taking, ",
"document ",
"",
"organization, ",
"and ",
"search ",
"",
"functionality, ",
"making ",
"it ",
"easy ",
"for ",
"team ",
"members ",
"to ",
"access ",
"and ",
"work ",
"on ",
"documents ",
"",
"",
"together."
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-11-02T14:28:09.53038Z",
"started_at": "2023-11-02T14:28:09.501277Z",
"completed_at": "2023-11-02T14:28:13.138964Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/n25q3wtbjbefplybohc3acamji/cancel",
"get": "https://api.replicate.com/v1/predictions/n25q3wtbjbefplybohc3acamji"
},
"metrics": {
"predict_time": 3.637687,
"total_time": 3.608584
}
}