Skip to content

Commit

Permalink
Fix smart.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Robi9 committed Sep 20, 2023
1 parent 99a881b commit d98cdfc
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions flows/routers/testdata/smart.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"arguments": [
"delivery",
"address",
"ÖØöøÿ"
"país"
],
"category_uuid": "c70fe86c-9aac-4cc2-a5cb-d35cbe3fed6e"
}
Expand All @@ -68,23 +68,17 @@
"text": "error when combining input \"12345\" with regex",
"type": "error"
},
{
"created_on": "2018-10-18T14:20:30.000123456Z",
"step_uuid": "59d74b86-3e2f-4a93-aece-b05d2fdcde0c",
"text": "error when combining input \"ÖØöøÿ\" with regex",
"type": "error"
},
{
"created_on": "2018-10-18T14:20:30.000123456Z",
"elapsed_ms": 0,
"extraction": "valid",
"request": "POST /v2/repository/nlp/zeroshot/zeroshot-fast-predict HTTP/1.1\r\nHost: api.bothub.it\r\nUser-Agent: Go-http-client/1.1\r\nContent-Length: 169\r\nContent-Type: application/json\r\nAccept-Encoding: gzip\r\n\r\n{\"text\":\"How much does it cost?\",\"categories\":[{\"option\":\"Price\",\"synonyms\":[\"price\",\"photos\"]},{\"option\":\"Delivery\",\"synonyms\":[\"delivery\",\"address\"]}],\"token\":\"token\"}",
"request": "POST /v2/repository/nlp/zeroshot/zeroshot-fast-predict HTTP/1.1\r\nHost: api.bothub.it\r\nUser-Agent: Go-http-client/1.1\r\nContent-Length: 177\r\nContent-Type: application/json\r\nAccept-Encoding: gzip\r\n\r\n{\"text\":\"How much does it cost?\",\"categories\":[{\"option\":\"Price\",\"synonyms\":[\"price\",\"photos\"]},{\"option\":\"Delivery\",\"synonyms\":[\"delivery\",\"address\",\"país\"]}],\"token\":\"token\"}",
"response": "HTTP/1.0 200 OK\r\nContent-Length: 51\r\n\r\n{\"output\":{\"classification\":\"Price\",\"other\":false}}",
"retries": 0,
"status": "success",
"status_code": 200,
"step_uuid": "59d74b86-3e2f-4a93-aece-b05d2fdcde0c",
"type": "zeroshot_called",
"type": "webhook_called",
"url": "https://api.bothub.it/v2/repository/nlp/zeroshot/zeroshot-fast-predict"
},
{
Expand All @@ -104,15 +98,15 @@
"12345",
"delivery",
"address",
"ÖØöøÿ"
"país"
],
"localizables": [
"price",
"photos",
"12345",
"delivery",
"address",
"ÖØöøÿ",
"país",
"Price",
"Delivery",
"Supercalifragilisticexpialidocious",
Expand Down

0 comments on commit d98cdfc

Please sign in to comment.