This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(#59): implement sauce labs for getting commands and rising ch…
…atting functionalities.
- Loading branch information
thomas
committed
May 30, 2023
1 parent
e883840
commit 899ac78
Showing
5 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
- id: global | ||
children: | ||
- id: variable | ||
name: protocol | ||
value: https:// | ||
- id: variable | ||
name: domain | ||
value: smartphone.herokuapp.com | ||
- id: variable | ||
name: endpoint | ||
value: /chat_rising | ||
- id: sets | ||
children: | ||
- id: set | ||
children: [] | ||
name: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
assertions: | ||
- id: post | ||
children: | ||
- id: body | ||
contentType: application/json | ||
content: >- | ||
{ | ||
"token": "test_token", | ||
"uuid": "test_uuid", | ||
"history": [{ | ||
"role": "system", | ||
"content": "You are a helpful assistant." | ||
}, | ||
{ | ||
"role": "user", | ||
"content": "Who won the world series in 2020?" | ||
}, | ||
{ | ||
"role": "assistant", | ||
"content": "The Los Angeles Dodgers won the World Series in 2020." | ||
} | ||
], | ||
"user_input": "Where was it played?", | ||
"model": "gpt-3.5-turbo" | ||
} | ||
url: ${protocol}${domain}${endpoint} | ||
var: payload | ||
mode: json | ||
- id: assert-equals | ||
expression: payload_response.headers['Content-Type'] | ||
value: application/json | ||
- id: assert-exists | ||
expression: payload | ||
- id: assert-exists | ||
expression: payload.message | ||
- id: assert-exists | ||
expression: payload.result | ||
configs: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters