curl --request POST \
--url https://api.glasser.ai/v1/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"run_ids": [
"<string>"
],
"provider": "<string>",
"endpoint": "<string>"
}
'import requests
url = "https://api.glasser.ai/v1/feedback"
payload = {
"message": "<string>",
"run_ids": ["<string>"],
"provider": "<string>",
"endpoint": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
message: '<string>',
run_ids: ['<string>'],
provider: '<string>',
endpoint: '<string>'
})
};
fetch('https://api.glasser.ai/v1/feedback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.glasser.ai/v1/feedback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'message' => '<string>',
'run_ids' => [
'<string>'
],
'provider' => '<string>',
'endpoint' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glasser.ai/v1/feedback"
payload := strings.NewReader("{\n \"message\": \"<string>\",\n \"run_ids\": [\n \"<string>\"\n ],\n \"provider\": \"<string>\",\n \"endpoint\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.glasser.ai/v1/feedback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"<string>\",\n \"run_ids\": [\n \"<string>\"\n ],\n \"provider\": \"<string>\",\n \"endpoint\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glasser.ai/v1/feedback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"message\": \"<string>\",\n \"run_ids\": [\n \"<string>\"\n ],\n \"provider\": \"<string>\",\n \"endpoint\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"feedback_id": "<string>",
"status": "received",
"run_ids": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "validation_failed",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "forbidden",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "rate_limited",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}Enviar comentarios
Informa de un problema con Glasser en sí: documentación poco clara, una capacidad que falta, un problema de precios o cualquier otra cosa. Los comentarios son privados para Glasser.
curl --request POST \
--url https://api.glasser.ai/v1/feedback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"message": "<string>",
"run_ids": [
"<string>"
],
"provider": "<string>",
"endpoint": "<string>"
}
'import requests
url = "https://api.glasser.ai/v1/feedback"
payload = {
"message": "<string>",
"run_ids": ["<string>"],
"provider": "<string>",
"endpoint": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
message: '<string>',
run_ids: ['<string>'],
provider: '<string>',
endpoint: '<string>'
})
};
fetch('https://api.glasser.ai/v1/feedback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.glasser.ai/v1/feedback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'message' => '<string>',
'run_ids' => [
'<string>'
],
'provider' => '<string>',
'endpoint' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glasser.ai/v1/feedback"
payload := strings.NewReader("{\n \"message\": \"<string>\",\n \"run_ids\": [\n \"<string>\"\n ],\n \"provider\": \"<string>\",\n \"endpoint\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.glasser.ai/v1/feedback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"message\": \"<string>\",\n \"run_ids\": [\n \"<string>\"\n ],\n \"provider\": \"<string>\",\n \"endpoint\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.glasser.ai/v1/feedback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"message\": \"<string>\",\n \"run_ids\": [\n \"<string>\"\n ],\n \"provider\": \"<string>\",\n \"endpoint\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"feedback_id": "<string>",
"status": "received",
"run_ids": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "validation_failed",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "forbidden",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}{
"error": {
"code": "rate_limited",
"message": "<string>",
"reason": "<string>",
"control": "<string>",
"retry_after_ms": 123,
"details": {}
},
"request_id": "<string>"
}unclear_documentation: una descripción de Endpoint, documentación de parámetros, skill o mensaje de error era poco claro o incorrecto.missing_capability: ningún Endpoint, parámetro o campo hace lo que necesita la tarea.pricing_issue: un cargo inesperado, o un precio que no estaba claro antes de la llamada.other: cualquier otra cosa, incluidas ideas.
run_ids; solo se vinculan los Runs que tu Key puede leer, y los demás ids nunca bloquean el informe. Los comentarios nunca cambian un Run ni un cargo.Cuerpo
Informa de un problema con Glasser en sí, aunque la tarea haya salido bien: anótalo y envíalo en una pausa natural o al terminar la tarea; nunca retrases la tarea del usuario por ello. Para calificar el resultado de un Run, usa runs review. unclear_documentation: una descripción de Endpoint, documentación de parámetros, skill o mensaje de error era poco claro o incorrecto, y tuviste que adivinar o reintentar. missing_capability: ningún Endpoint, parámetro o campo hace lo que necesita la tarea. pricing_issue: un cargo inesperado, o un precio que no estaba claro antes de la llamada. other: cualquier otra cosa, incluidas ideas. Describe qué necesitabas y qué viste; indica cuando solo sea una sospecha. Pon los ids de Run relacionados en run_ids, no solo en el mensaje. Informa de cada problema una vez y omite datos privados y credenciales. Si el envío falla, no lo reintentes ni se lo menciones al usuario.
unclear_documentation, missing_capability, pricing_issue, other