Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
feature(#59): implement sauce labs for getting commands and rising ch…
Browse files Browse the repository at this point in the history
…atting functionalities.
  • Loading branch information
thomas committed May 30, 2023
1 parent e883840 commit 899ac78
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .sauce/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ suites:
- 02 Upload Image
- 03 Image Relatedness
- 04 Add Feedback
- 05 Get Feedback
- 05 Get Feedback
- 06 Get Commands
- 07 Rising Chat
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,13 @@ All credentials including openai, replicate and pinecone are shared with Github
- Integrated all Unit Tests
- Integrated Deployment Workflow

## Contributing
Please refer to each project's style and contribution guidelines for submitting patches and additions. In general, we follow the "fork-and-pull" Git workflow.

1. **Fork** the repo on GitHub
2. **Clone** the project to your own machine
3. **Commit** changes to your own branch
4. **Push** your work back up to your fork
5. Submit a **Pull request** so that we can review your changes

NOTE: Be sure to merge the latest from "upstream" before making a pull request!
16 changes: 16 additions & 0 deletions sauce_tests/07 Rising Chat/input.yaml
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
38 changes: 38 additions & 0 deletions sauce_tests/07 Rising Chat/unit.yaml
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: []
2 changes: 1 addition & 1 deletion src/static/swagger.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.1
info:
title: Application
description: Generated at 28/05/2023 17:05:42. This is the swagger
description: Generated at 28/05/2023 19:37:09. This is the swagger
ui based on the open api 3.0 specification of the Application
version: 1.0.0 created by the flask swagger generator.
externalDocs:
Expand Down

0 comments on commit 899ac78

Please sign in to comment.