Thomas Richardson commited on
Commit
8f051f8
·
unverified ·
2 Parent(s): a8e0df41632e12

Merge pull request #91 from ttt246/feature/llm_interface_9

Browse files
sauce_tests/01 Send Notification/unit.yaml CHANGED
@@ -8,15 +8,17 @@ assertions:
8
  contentType: application/json
9
  content: >-
10
  {
11
- "openai_key": "",
12
- "pinecone_key": "",
13
- "pinecone_env": "",
14
- "firebase_key": "",
15
- "settings": {
16
- "temperature": 0.6
 
 
 
 
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
- "token": "eSyP3i7ITZuq8hWn2qutTl:APA91bH1FtWkaTSJwuX4WKWAl3Q-ZFyrOw4UtMP4IfwuvNrHOThH7EvEGIhtguilLRyQNlLiXatEN0xntHAc8bbKobSGjge3wxIHlspbIWY_855CzONqaVdl3y3zOmgKZNnuhYi4gwbh",
10
- "uuid": "test-uuid",
11
- "openai_key": "",
12
- "pinecone_key": "",
13
- "pinecone_env": "",
14
- "firebase_key": "",
15
- "settings": {
16
- "temperature": 0.6
 
 
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
- "token": "eSyP3i7ITZuq8hWn2qutTl:APA91bH1FtWkaTSJwuX4WKWAl3Q-ZFyrOw4UtMP4IfwuvNrHOThH7EvEGIhtguilLRyQNlLiXatEN0xntHAc8bbKobSGjge3wxIHlspbIWY_855CzONqaVdl3y3zOmgKZNnuhYi4gwbh",
14
- "uuid": "test-uuid",
15
- "openai_key": "",
16
- "pinecone_key": "",
17
- "pinecone_env": "",
18
- "firebase_key": "",
19
- "settings": {
20
- "temperature": 0.6
 
 
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
- "token": "eSyP3i7ITZuq8hWn2qutTl:APA91bH1FtWkaTSJwuX4WKWAl3Q-ZFyrOw4UtMP4IfwuvNrHOThH7EvEGIhtguilLRyQNlLiXatEN0xntHAc8bbKobSGjge3wxIHlspbIWY_855CzONqaVdl3y3zOmgKZNnuhYi4gwbh",
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
- "openai_key": "",
20
- "pinecone_key": "",
21
- "pinecone_env": "",
22
- "firebase_key": "",
23
- "settings": {
24
- "temperature": 0.6
 
 
 
 
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
- "openai_key": "",
9
- "pinecone_key": "",
10
- "pinecone_env": "",
11
- "firebase_key": "",
12
- "settings": {
13
- "temperature": 0.6
 
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
- assertions:
2
- - id: post
3
- children:
4
- - id: body
5
- contentType: application/json
6
- content: |-
7
- {
8
- "openai_key": "",
9
- "pinecone_key": "",
10
- "pinecone_env": "",
11
- "firebase_key": "",
12
- "settings": {
13
- "temperature": 0.6
14
- }
15
- }
16
- url: ${protocol}${domain}${endpoint}
17
- var: payload
18
- mode: json
19
- - id: assert-equals
20
- expression: payload_response.headers['Content-Type']
21
- value: application/json
22
- - id: assert-exists
23
- expression: payload
24
- - id: assert-is
25
- expression: payload.message
26
- type: array
27
- - id: each
28
- children:
29
- - id: assert-exists
30
- expression: _1
31
- expression: payload.message
32
- - id: assert-exists
33
- expression: payload.result
34
- - id: assert-exists
35
- expression: payload.result.program
36
- - id: assert-is
37
- expression: payload.result.content
38
- type: array
39
- - id: each
40
- children:
41
- - id: assert-exists
42
- expression: _1
43
- expression: payload.result.content
44
- - id: assert-is
45
- expression: payload.status_code
46
- type: integer
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
- "token": "test_token",
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
- "openai_key": "",
25
- "pinecone_key": "",
26
- "pinecone_env": "",
27
- "firebase_key": "",
28
- "settings": {
29
- "temperature": 0.6
 
 
 
 
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
- "openai_key": "",
17
- "pinecone_key": "",
18
- "pinecone_env": "",
19
- "firebase_key": "",
20
- "settings": {
21
- "temperature": 0.6
 
 
 
 
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}