Merge pull request #91 from ttt246/feature/llm_interface_9
Browse files- sauce_tests/01 Send Notification/unit.yaml +10 -8
- sauce_tests/02 Upload Image/unit.yaml +10 -8
- sauce_tests/03 Image Relatedness/unit.yaml +10 -8
- sauce_tests/04 Add Feedback/unit.yaml +11 -8
- sauce_tests/05 Get Feedback/unit.yaml +8 -7
- sauce_tests/06 Get Commands/unit.yaml +48 -47
- sauce_tests/07 Rising Chat/unit.yaml +11 -8
- sauce_tests/08 Train Contacts/unit.yaml +10 -8
sauce_tests/01 Send Notification/unit.yaml
CHANGED
|
@@ -8,15 +8,17 @@ assertions:
|
|
| 8 |
contentType: application/json
|
| 9 |
content: >-
|
| 10 |
{
|
| 11 |
-
"
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
},
|
| 18 |
-
"token": "eSyP3i7ITZuq8hWn2qutTl:APA91bH1FtWkaTSJwuX4WKWAl3Q-ZFyrOw4UtMP4IfwuvNrHOThH7EvEGIhtguilLRyQNlLiXatEN0xntHAc8bbKobSGjge3wxIHlspbIWY_855CzONqaVdl3y3zOmgKZNnuhYi4gwbh",
|
| 19 |
-
"uuid": "c40a09075d11940f",
|
| 20 |
"message": "Please search an image that shows Brown Teddy Bear"
|
| 21 |
}
|
| 22 |
url: ${protocol}${domain}${endpoint}
|
|
|
|
| 8 |
contentType: application/json
|
| 9 |
content: >-
|
| 10 |
{
|
| 11 |
+
"confs": {
|
| 12 |
+
"openai_key": "",
|
| 13 |
+
"pinecone_key": "",
|
| 14 |
+
"pinecone_env": "",
|
| 15 |
+
"firebase_key": "",
|
| 16 |
+
"settings": {
|
| 17 |
+
"temperature": 0.6
|
| 18 |
+
},
|
| 19 |
+
"token": "eSyP3i7ITZuq8hWn2qutTl:APA91bH1FtWkaTSJwuX4WKWAl3Q-ZFyrOw4UtMP4IfwuvNrHOThH7EvEGIhtguilLRyQNlLiXatEN0xntHAc8bbKobSGjge3wxIHlspbIWY_855CzONqaVdl3y3zOmgKZNnuhYi4gwbh",
|
| 20 |
+
"uuid": "c40a09075d11940f"
|
| 21 |
},
|
|
|
|
|
|
|
| 22 |
"message": "Please search an image that shows Brown Teddy Bear"
|
| 23 |
}
|
| 24 |
url: ${protocol}${domain}${endpoint}
|
sauce_tests/02 Upload Image/unit.yaml
CHANGED
|
@@ -6,14 +6,16 @@ assertions:
|
|
| 6 |
content: >-
|
| 7 |
{
|
| 8 |
"image_name": "0ddffe51-3763-48d9-ab74-2086de529217",
|
| 9 |
-
"
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
},
|
| 18 |
"status": "updated"
|
| 19 |
}
|
|
|
|
| 6 |
content: >-
|
| 7 |
{
|
| 8 |
"image_name": "0ddffe51-3763-48d9-ab74-2086de529217",
|
| 9 |
+
"confs": {
|
| 10 |
+
"token": "eSyP3i7ITZuq8hWn2qutTl:APA91bH1FtWkaTSJwuX4WKWAl3Q-ZFyrOw4UtMP4IfwuvNrHOThH7EvEGIhtguilLRyQNlLiXatEN0xntHAc8bbKobSGjge3wxIHlspbIWY_855CzONqaVdl3y3zOmgKZNnuhYi4gwbh",
|
| 11 |
+
"uuid": "test-uuid",
|
| 12 |
+
"openai_key": "",
|
| 13 |
+
"pinecone_key": "",
|
| 14 |
+
"pinecone_env": "",
|
| 15 |
+
"firebase_key": "",
|
| 16 |
+
"settings": {
|
| 17 |
+
"temperature": 0.6
|
| 18 |
+
}
|
| 19 |
},
|
| 20 |
"status": "updated"
|
| 21 |
}
|
sauce_tests/03 Image Relatedness/unit.yaml
CHANGED
|
@@ -10,14 +10,16 @@ assertions:
|
|
| 10 |
{
|
| 11 |
"image_name": "0ddffe51-3763-48d9-ab74-2086de529217",
|
| 12 |
"message": "This is the text about the image",
|
| 13 |
-
"
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
}
|
| 22 |
}
|
| 23 |
url: ${protocol}${domain}${endpoint}
|
|
|
|
| 10 |
{
|
| 11 |
"image_name": "0ddffe51-3763-48d9-ab74-2086de529217",
|
| 12 |
"message": "This is the text about the image",
|
| 13 |
+
"confs": {
|
| 14 |
+
"token": "eSyP3i7ITZuq8hWn2qutTl:APA91bH1FtWkaTSJwuX4WKWAl3Q-ZFyrOw4UtMP4IfwuvNrHOThH7EvEGIhtguilLRyQNlLiXatEN0xntHAc8bbKobSGjge3wxIHlspbIWY_855CzONqaVdl3y3zOmgKZNnuhYi4gwbh",
|
| 15 |
+
"uuid": "test-uuid",
|
| 16 |
+
"openai_key": "",
|
| 17 |
+
"pinecone_key": "",
|
| 18 |
+
"pinecone_env": "",
|
| 19 |
+
"firebase_key": "",
|
| 20 |
+
"settings": {
|
| 21 |
+
"temperature": 0.6
|
| 22 |
+
}
|
| 23 |
}
|
| 24 |
}
|
| 25 |
url: ${protocol}${domain}${endpoint}
|
sauce_tests/04 Add Feedback/unit.yaml
CHANGED
|
@@ -5,8 +5,7 @@ assertions:
|
|
| 5 |
contentType: application/json
|
| 6 |
content: >-
|
| 7 |
{
|
| 8 |
-
|
| 9 |
-
"uuid": "test-uuid",
|
| 10 |
"prompt": {
|
| 11 |
"image_name": "test_image",
|
| 12 |
"message": "test_message"
|
|
@@ -16,12 +15,16 @@ assertions:
|
|
| 16 |
"message": "test_message"
|
| 17 |
},
|
| 18 |
"rating": 1,
|
| 19 |
-
"
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
}
|
| 26 |
}
|
| 27 |
url: ${protocol}${domain}${endpoint}
|
|
|
|
| 5 |
contentType: application/json
|
| 6 |
content: >-
|
| 7 |
{
|
| 8 |
+
|
|
|
|
| 9 |
"prompt": {
|
| 10 |
"image_name": "test_image",
|
| 11 |
"message": "test_message"
|
|
|
|
| 15 |
"message": "test_message"
|
| 16 |
},
|
| 17 |
"rating": 1,
|
| 18 |
+
"confs": {
|
| 19 |
+
"token": "eSyP3i7ITZuq8hWn2qutTl:APA91bH1FtWkaTSJwuX4WKWAl3Q-ZFyrOw4UtMP4IfwuvNrHOThH7EvEGIhtguilLRyQNlLiXatEN0xntHAc8bbKobSGjge3wxIHlspbIWY_855CzONqaVdl3y3zOmgKZNnuhYi4gwbh",
|
| 20 |
+
"uuid": "test-uuid",
|
| 21 |
+
"openai_key": "",
|
| 22 |
+
"pinecone_key": "",
|
| 23 |
+
"pinecone_env": "",
|
| 24 |
+
"firebase_key": "",
|
| 25 |
+
"settings": {
|
| 26 |
+
"temperature": 0.6
|
| 27 |
+
}
|
| 28 |
}
|
| 29 |
}
|
| 30 |
url: ${protocol}${domain}${endpoint}
|
sauce_tests/05 Get Feedback/unit.yaml
CHANGED
|
@@ -4,13 +4,14 @@ assertions:
|
|
| 4 |
- id: body
|
| 5 |
contentType: application/json
|
| 6 |
content: |-
|
| 7 |
-
{
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
|
|
|
| 14 |
}
|
| 15 |
}
|
| 16 |
url: ${protocol}${domain}${endpoint}
|
|
|
|
| 4 |
- id: body
|
| 5 |
contentType: application/json
|
| 6 |
content: |-
|
| 7 |
+
{ "confs": {
|
| 8 |
+
"openai_key": "",
|
| 9 |
+
"pinecone_key": "",
|
| 10 |
+
"pinecone_env": "",
|
| 11 |
+
"firebase_key": "",
|
| 12 |
+
"settings": {
|
| 13 |
+
"temperature": 0.6
|
| 14 |
+
}
|
| 15 |
}
|
| 16 |
}
|
| 17 |
url: ${protocol}${domain}${endpoint}
|
sauce_tests/06 Get Commands/unit.yaml
CHANGED
|
@@ -1,48 +1,49 @@
|
|
| 1 |
-
|
| 2 |
-
- id: post
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
"
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
- id: assert-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
- id: assert-exists
|
| 35 |
-
|
| 36 |
-
- id: assert-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
|
|
|
| 48 |
configs: []
|
|
|
|
| 1 |
+
assertions:
|
| 2 |
+
- id: post
|
| 3 |
+
children:
|
| 4 |
+
- id: body
|
| 5 |
+
contentType: application/json
|
| 6 |
+
content: |-
|
| 7 |
+
{
|
| 8 |
+
"confs": {
|
| 9 |
+
"openai_key": "",
|
| 10 |
+
"pinecone_key": "",
|
| 11 |
+
"pinecone_env": "",
|
| 12 |
+
"firebase_key": "",
|
| 13 |
+
"settings": {
|
| 14 |
+
"temperature": 0.6
|
| 15 |
+
}
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
url: ${protocol}${domain}${endpoint}
|
| 19 |
+
var: payload
|
| 20 |
+
mode: json
|
| 21 |
+
- id: assert-equals
|
| 22 |
+
expression: payload_response.headers['Content-Type']
|
| 23 |
+
value: application/json
|
| 24 |
+
- id: assert-exists
|
| 25 |
+
expression: payload
|
| 26 |
+
- id: assert-is
|
| 27 |
+
expression: payload.message
|
| 28 |
+
type: array
|
| 29 |
+
- id: each
|
| 30 |
+
children:
|
| 31 |
+
- id: assert-exists
|
| 32 |
+
expression: _1
|
| 33 |
+
expression: payload.message
|
| 34 |
+
- id: assert-exists
|
| 35 |
+
expression: payload.result
|
| 36 |
+
- id: assert-exists
|
| 37 |
+
expression: payload.result.program
|
| 38 |
+
- id: assert-is
|
| 39 |
+
expression: payload.result.content
|
| 40 |
+
type: array
|
| 41 |
+
- id: each
|
| 42 |
+
children:
|
| 43 |
+
- id: assert-exists
|
| 44 |
+
expression: _1
|
| 45 |
+
expression: payload.result.content
|
| 46 |
+
- id: assert-is
|
| 47 |
+
expression: payload.status_code
|
| 48 |
+
type: integer
|
| 49 |
configs: []
|
sauce_tests/07 Rising Chat/unit.yaml
CHANGED
|
@@ -5,8 +5,7 @@ assertions:
|
|
| 5 |
contentType: application/json
|
| 6 |
content: >-
|
| 7 |
{
|
| 8 |
-
|
| 9 |
-
"uuid": "test_uuid",
|
| 10 |
"history": [{
|
| 11 |
"role": "system",
|
| 12 |
"content": "You are a helpful assistant."
|
|
@@ -21,12 +20,16 @@ assertions:
|
|
| 21 |
}
|
| 22 |
],
|
| 23 |
"user_input": "Where was it played?",
|
| 24 |
-
"
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
}
|
| 31 |
}
|
| 32 |
url: ${protocol}${domain}${endpoint}
|
|
|
|
| 5 |
contentType: application/json
|
| 6 |
content: >-
|
| 7 |
{
|
| 8 |
+
|
|
|
|
| 9 |
"history": [{
|
| 10 |
"role": "system",
|
| 11 |
"content": "You are a helpful assistant."
|
|
|
|
| 20 |
}
|
| 21 |
],
|
| 22 |
"user_input": "Where was it played?",
|
| 23 |
+
"confs": {
|
| 24 |
+
"token": "test_token",
|
| 25 |
+
"uuid": "test_uuid",
|
| 26 |
+
"openai_key": "",
|
| 27 |
+
"pinecone_key": "",
|
| 28 |
+
"pinecone_env": "",
|
| 29 |
+
"firebase_key": "",
|
| 30 |
+
"settings": {
|
| 31 |
+
"temperature": 0.6
|
| 32 |
+
}
|
| 33 |
}
|
| 34 |
}
|
| 35 |
url: ${protocol}${domain}${endpoint}
|
sauce_tests/08 Train Contacts/unit.yaml
CHANGED
|
@@ -5,20 +5,22 @@ assertions:
|
|
| 5 |
contentType: application/json
|
| 6 |
content: |-
|
| 7 |
{
|
| 8 |
-
"token": "test_token",
|
| 9 |
-
"uuid": "test-uuid",
|
| 10 |
"contacts": [{
|
| 11 |
"contactId": "1",
|
| 12 |
"displayName": "Thomas",
|
| 13 |
"phoneNumbers": ["217 374 8105"],
|
| 14 |
"status": "updated"
|
| 15 |
}],
|
| 16 |
-
"
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
}
|
| 23 |
}
|
| 24 |
url: ${protocol}${domain}${endpoint}
|
|
|
|
| 5 |
contentType: application/json
|
| 6 |
content: |-
|
| 7 |
{
|
|
|
|
|
|
|
| 8 |
"contacts": [{
|
| 9 |
"contactId": "1",
|
| 10 |
"displayName": "Thomas",
|
| 11 |
"phoneNumbers": ["217 374 8105"],
|
| 12 |
"status": "updated"
|
| 13 |
}],
|
| 14 |
+
"confs": {
|
| 15 |
+
"token": "test_token",
|
| 16 |
+
"uuid": "test-uuid",
|
| 17 |
+
"openai_key": "",
|
| 18 |
+
"pinecone_key": "",
|
| 19 |
+
"pinecone_env": "",
|
| 20 |
+
"firebase_key": "",
|
| 21 |
+
"settings": {
|
| 22 |
+
"temperature": 0.6
|
| 23 |
+
}
|
| 24 |
}
|
| 25 |
}
|
| 26 |
url: ${protocol}${domain}${endpoint}
|