import requests
url = "https://api.opper.ai/v2/datasets/{dataset_id}/entries/{entry_id}"
payload = {
"input": "<any>",
"output": "<any>",
"expected": "<any>",
"comment": "This is an example of how one can edit the output"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.json())
Copy
Ask AI
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"input": "Given this input, what is the output?",
"output": "This is the output to the dataset entry",
"expected": "This `was` the output to the dataset entry",
"comment": "This is an example of how one can edit the output"
}
import requests
url = "https://api.opper.ai/v2/datasets/{dataset_id}/entries/{entry_id}"
payload = {
"input": "<any>",
"output": "<any>",
"expected": "<any>",
"comment": "This is an example of how one can edit the output"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.json())
Copy
Ask AI
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"input": "Given this input, what is the output?",
"output": "This is the output to the dataset entry",
"expected": "This `was` the output to the dataset entry",
"comment": "This is an example of how one can edit the output"
}
Assistant
Responses are generated using AI and may contain mistakes.