-
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.
Use httptest package, remove .dry_run arguments
- Loading branch information
Showing
20 changed files
with
305 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: GPTscreenR | ||
Title: GPT-assisted source screening for scoping reviews | ||
Version: 0.0.3.9002 | ||
Version: 0.0.3.9003 | ||
Authors@R: | ||
person("David", "Wilkins", , "[email protected]", role = c("aut", "cre")) | ||
Description: GPT-assisted source screening for scoping reviews. | ||
|
@@ -11,6 +11,7 @@ RoxygenNote: 7.3.1 | |
URL: https://github.com/wilkox/GPTscreenR | ||
BugReports: https://github.com/wilkox/GPTscreenR/issues | ||
Suggests: | ||
httptest, | ||
knitr, | ||
rmarkdown, | ||
testthat (>= 3.0.0) | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
tests/testthat/api.openai.com/v1/chat/completions-1d7d6c-POST.json
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,23 @@ | ||
{ | ||
"id": "chatcmpl-94KDWKpIsk9bftjZN7dpypNY1MtBv", | ||
"object": "chat.completion", | ||
"created": 1710818054, | ||
"model": "gpt-4-0613", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "1. TRUE: The study involves nursing home residents, who by definition are likely to be aged 65 or older. The abstract does not specify the age of participants, but usually, nursing homes are inhabited by elderly individuals.\n2. TRUE: The study's population are residents of nursing homes which fit the definition of residential aged care facility provided in the criteria.\n3. TRUE: Alpaca therapy is the central focus of the study conducted in these nursing homes and is evaluated in comparison to a control condition (television viewing lounge).\n4. TRUE: The study evaluates the impact of therapy alpaca program on depression, anxiety, and stress which are aspects of mental health and emotional well-being.\n5. TRUE: This study is a primary research project based on a randomized control trial intended to evaluate the role of therapy alpacas in enhancing mental health and emotional well-being in nursing home residents." | ||
}, | ||
"logprobs": null, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"prompt_tokens": 813, | ||
"completion_tokens": 180, | ||
"total_tokens": 993 | ||
}, | ||
"system_fingerprint": null | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/testthat/api.openai.com/v1/chat/completions-3a0bf8-POST.json
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,23 @@ | ||
{ | ||
"id": "chatcmpl-94KDdjGJG4lDyNeXDWI8WShICmx7n", | ||
"object": "chat.completion", | ||
"created": 1710818061, | ||
"model": "gpt-4-0613", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "INCLUDE" | ||
}, | ||
"logprobs": null, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"prompt_tokens": 1051, | ||
"completion_tokens": 1, | ||
"total_tokens": 1052 | ||
}, | ||
"system_fingerprint": null | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/testthat/api.openai.com/v1/chat/completions-514df9-POST.json
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,23 @@ | ||
{ | ||
"id": "chatcmpl-94KEmrrYlksj7lcvjxzNZNxjy9Pjl", | ||
"object": "chat.completion", | ||
"created": 1710818132, | ||
"model": "gpt-4-0613", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "1. TRUE - The study focuses on nursing home residents who are presumably over the age of 65.\n2. TRUE - The study population lives in nursing homes, which are a type of residential aged care facility that provides care and supports daily living activities, as well as nursing services.\n3. TRUE - It is implied by \"nursing home\" that the care delivered is long-term and based on support for daily living and nursing services. The abstract doesn't directly state that the setting is not a hospital, hospice, or independent living village, but these are usually distinct from nursing homes.\n4. TRUE - The study clearly states that therapy alpacas were used as an intervention in the study.\n5. TRUE - The abstract clearly states that the impact on depression, anxiety, and stress (which are aspects of mental health and emotional well-being) was evaluated." | ||
}, | ||
"logprobs": null, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"prompt_tokens": 796, | ||
"completion_tokens": 175, | ||
"total_tokens": 971 | ||
}, | ||
"system_fingerprint": null | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/testthat/api.openai.com/v1/chat/completions-6bebc8-POST.json
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,23 @@ | ||
{ | ||
"id": "chatcmpl-94KDiAiHIlHBb8HWuTGwCv1hgr14g", | ||
"object": "chat.completion", | ||
"created": 1710818066, | ||
"model": "gpt-4-0613", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "1. True - Although the abstract does not explicitly state the age of the nursing home residents, we can reasonably infer that the elderly living in such facilities are predominantly 65 years and older.\n \n2. True - The research is conducted within nursing homes which, per the study description, could be classified as residential aged care facilities as they provide support for activities of daily living and nursing support.\n\n3. True - The abstract clearly mentions the utilization of therapy alpacas in the residential programme.\n \n4. True - Outcomes observed in this study involve reduction in depression, anxiety, and stress, which are aspects of mental health and emotional well-being as required by the criteria.\n \n5. True - This publication refers to a randomized control trial, which classifies it as a primary research source." | ||
}, | ||
"logprobs": null, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"prompt_tokens": 804, | ||
"completion_tokens": 159, | ||
"total_tokens": 963 | ||
}, | ||
"system_fingerprint": null | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/testthat/api.openai.com/v1/chat/completions-6d6d70-POST.json
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,23 @@ | ||
{ | ||
"id": "chatcmpl-94KDxxfEmaBdFXWbxT8wcoJWeGGkh", | ||
"object": "chat.completion", | ||
"created": 1710818081, | ||
"model": "gpt-4-0613", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "1. TRUE - The source focuses on using therapy alpacas as a non-pharmacological intervention to manage depression, anxiety, and stress.\n2. TRUE - The population targeted for this study are nursing home residents.\n3. TRUE - The source presents original research in the form of a randomized control trial.\n4. TRUE - The study design reported in the source is a randomized control trial.\n5. UNKNOWN - The abstract does not provide information on where the source was published.\n6. TRUE - The source discusses its findings and provides substantial data for the same.\n7. TRUE - The intervention of therapy alpacas appears to be feasible in a nursing home environment, as suggested by the successful implementation in the study.\n8. TRUE - The source provides a clear account of the effectiveness of therapy alpacas in reducing depression, anxiety, and stress.\n9. TRUE - The source includes quantitative data on the reduction of depression, anxiety, and stress as measured by the mean DASS-21 scores.\n10. TRUE - The source is written in English." | ||
}, | ||
"logprobs": null, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"prompt_tokens": 644, | ||
"completion_tokens": 212, | ||
"total_tokens": 856 | ||
}, | ||
"system_fingerprint": null | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/testthat/api.openai.com/v1/chat/completions-c593d1-POST.json
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,23 @@ | ||
{ | ||
"id": "chatcmpl-94KEglysgX08fJxdjQcK8B02gEPG1", | ||
"object": "chat.completion", | ||
"created": 1710818126, | ||
"model": "gpt-4-0613", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "INCLUDE" | ||
}, | ||
"logprobs": null, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"prompt_tokens": 994, | ||
"completion_tokens": 1, | ||
"total_tokens": 995 | ||
}, | ||
"system_fingerprint": null | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/testthat/api.openai.com/v1/chat/completions-ce1e77-POST.json
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,23 @@ | ||
{ | ||
"id": "chatcmpl-94KDn7YOcBAV2efEf2Muk2el7iTaE", | ||
"object": "chat.completion", | ||
"created": 1710818071, | ||
"model": "gpt-4-0613", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "INCLUDE" | ||
}, | ||
"logprobs": null, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"prompt_tokens": 1021, | ||
"completion_tokens": 1, | ||
"total_tokens": 1022 | ||
}, | ||
"system_fingerprint": null | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/testthat/api.openai.com/v1/chat/completions-cfc308-POST.json
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,23 @@ | ||
{ | ||
"id": "chatcmpl-94KE4MrXRhZVPz67xVRayXBr2cK1t", | ||
"object": "chat.completion", | ||
"created": 1710818088, | ||
"model": "gpt-4-0613", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "INCLUDE" | ||
}, | ||
"logprobs": null, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"prompt_tokens": 914, | ||
"completion_tokens": 1, | ||
"total_tokens": 915 | ||
}, | ||
"system_fingerprint": null | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/testthat/api.openai.com/v1/chat/completions-dd5499-POST.json
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,23 @@ | ||
{ | ||
"id": "chatcmpl-94KEYOaSri7y3wzXVWwrPY6lsGMe8", | ||
"object": "chat.completion", | ||
"created": 1710818118, | ||
"model": "gpt-4-0613", | ||
"choices": [ | ||
{ | ||
"index": 0, | ||
"message": { | ||
"role": "assistant", | ||
"content": "1. TRUE - The abstract describes a randomized control trial which qualifies as primary research.\n2. TRUE - Though the term \"elderly\" is not explicitly used, it is mentioned that the participants are nursing home residents, a population where the majority are usually over 65.\n3. TRUE - The abstract mentions nursing homes, which fall into the definition of residential-aged care facilities providing daily living and nursing support.\n4. TRUE - The study revolves around the introduction of therapy alpacas for residents, which directly addresses the concept outlined in the inclusion criteria.\n5. TRUE - The abstract states that depression, anxiety, and stress levels of nursing home residents were evaluated and significantly reduced through therapy with alpacas, thus focusing on emotional well-being and mental health." | ||
}, | ||
"logprobs": null, | ||
"finish_reason": "stop" | ||
} | ||
], | ||
"usage": { | ||
"prompt_tokens": 784, | ||
"completion_tokens": 152, | ||
"total_tokens": 936 | ||
}, | ||
"system_fingerprint": null | ||
} |
Oops, something went wrong.