From fa444e3145e1d28c29a61f5eea837d3ee87be505 Mon Sep 17 00:00:00 2001 From: David Wilkins Date: Mon, 1 Apr 2024 11:05:02 +1030 Subject: [PATCH] Update tests --- .../v1/chat/completions-15e2d0-POST.json | 23 +++++++++++++++++++ .../v1/chat/completions-1e1655-POST.json | 23 +++++++++++++++++++ .../v1/chat/completions-546b1b-POST.json | 23 +++++++++++++++++++ .../v1/chat/completions-586c94-POST.json | 23 +++++++++++++++++++ .../v1/chat/completions-5edfc0-POST.json | 23 +++++++++++++++++++ .../v1/chat/completions-67c3d4-POST.json | 23 +++++++++++++++++++ .../v1/chat/completions-a2d514-POST.json | 23 +++++++++++++++++++ .../v1/chat/completions-d8fc3b-POST.json | 23 +++++++++++++++++++ .../v1/chat/completions-d93bea-POST.json | 23 +++++++++++++++++++ .../v1/chat/completions-ea72cf-POST.json | 23 +++++++++++++++++++ 10 files changed, 230 insertions(+) create mode 100644 tests/testthat/api.openai.com/v1/chat/completions-15e2d0-POST.json create mode 100644 tests/testthat/api.openai.com/v1/chat/completions-1e1655-POST.json create mode 100644 tests/testthat/api.openai.com/v1/chat/completions-546b1b-POST.json create mode 100644 tests/testthat/api.openai.com/v1/chat/completions-586c94-POST.json create mode 100644 tests/testthat/api.openai.com/v1/chat/completions-5edfc0-POST.json create mode 100644 tests/testthat/api.openai.com/v1/chat/completions-67c3d4-POST.json create mode 100644 tests/testthat/api.openai.com/v1/chat/completions-a2d514-POST.json create mode 100644 tests/testthat/api.openai.com/v1/chat/completions-d8fc3b-POST.json create mode 100644 tests/testthat/api.openai.com/v1/chat/completions-d93bea-POST.json create mode 100644 tests/testthat/api.openai.com/v1/chat/completions-ea72cf-POST.json diff --git a/tests/testthat/api.openai.com/v1/chat/completions-15e2d0-POST.json b/tests/testthat/api.openai.com/v1/chat/completions-15e2d0-POST.json new file mode 100644 index 0000000..e7dfeac --- /dev/null +++ b/tests/testthat/api.openai.com/v1/chat/completions-15e2d0-POST.json @@ -0,0 +1,23 @@ +{ + "id": "chatcmpl-98zuEoTPjX5tCFd7JTb0NjXwD7ROQ", + "object": "chat.completion", + "created": 1711931618, + "model": "gpt-4-0125-preview", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "1. The source must focus on primary research regarding the use of therapy alpacs in enhancing the mental health and emotional well-being of elderly individuals.\n2. The population of interest is elderly people living in residential aged care facilities, defined as 65 years of age or older.\n3. The concept centers around residential aged care facilities that have utilized therapy alpacas as part of their care programs for residents.\n4. Residential aged care facilities are specifically defined as long-term places of residence that include support for activities of daily living (e.g., meal preparation, bathing, housekeeping) and nursing support (e.g., medication management), as well as other structured programs for entertainment and well-being.\n5. The study must exclude settings not offering daily living or nursing supports (e.g., independent living villages), or that are not intended for long-term residence for the elderly (e.g., hospitals or hospices).\n6. The context for inclusion is studies or trials examining the impact of therapy alpaca programs on outcomes such as stress reduction, emotional well-being, mental health, and overall life satisfaction of elderly residents." + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 591, + "completion_tokens": 223, + "total_tokens": 814 + }, + "system_fingerprint": "fp_f38f4d6482" +} diff --git a/tests/testthat/api.openai.com/v1/chat/completions-1e1655-POST.json b/tests/testthat/api.openai.com/v1/chat/completions-1e1655-POST.json new file mode 100644 index 0000000..6bd154f --- /dev/null +++ b/tests/testthat/api.openai.com/v1/chat/completions-1e1655-POST.json @@ -0,0 +1,23 @@ +{ + "id": "chatcmpl-98zsq0o0RXaWoEhAEneVXJAo2PvAY", + "object": "chat.completion", + "created": 1711931532, + "model": "gpt-4-0125-preview", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "INCLUDE" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 1352, + "completion_tokens": 1, + "total_tokens": 1353 + }, + "system_fingerprint": "fp_aff4b0ea4d" +} diff --git a/tests/testthat/api.openai.com/v1/chat/completions-546b1b-POST.json b/tests/testthat/api.openai.com/v1/chat/completions-546b1b-POST.json new file mode 100644 index 0000000..78031e4 --- /dev/null +++ b/tests/testthat/api.openai.com/v1/chat/completions-546b1b-POST.json @@ -0,0 +1,23 @@ +{ + "id": "chatcmpl-98zsYpbrhii3QV9mct3bPT6A6BeId", + "object": "chat.completion", + "created": 1711931514, + "model": "gpt-4-0125-preview", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "1. TRUE - The source discusses primary research on the use of therapy alpacas in nursing homes, which aligns with the focus on therapy alpaca research.\n \n Explanation: The abstract describes a randomised control trial involving therapy alpacas, indicating primary research.\n\n2. TRUE - The study involves elderly people living in residential aged care facilities, fitting the population criteria.\n\n Explanation: Nursing home residents are typically elderly individuals living in long-term residential care settings, matching the defined population.\n\n3. TRUE - The research is centered around residential aged care facilities utilizing therapy alpacas as part of their resident care programmes.\n\n Explanation: The study specifically involves the implementation of therapy alpaca visits as part of the care provided to residents.\n\n4. TRUE - The study's setting in nursing homes suggests these are facilities offering long-term residence and support for activities of daily living and nursing support.\n\n Explanation: Nursing homes inherently provide the long-term residence, daily living and nursing support described in the criteria.\n\n5. TRUE - The impact of therapy alpaca programmes on stress, emotional well-being, and mental health of the residents is the core focus of the study.\n\n Explanation: The abstract discusses the effectiveness of therapy alpaca visits in significantly reducing levels of depression, anxiety, and stress among nursing home residents.\n\n6. TRUE - The research aims to enhance the mental health and emotional well-being of elderly residents through therapy alpaca programmes, which is directly in line with the study objective.\n\n Explanation: The significant reductions in depression, anxiety, and stress levels among residents receiving alpaca visits demonstrate a clear intent and effect on enhancing mental and emotional well-being.\n\n7. FALSE - There is no information to suggest the study includes settings not meeting the specified requirements, like independent living villages, hospitals, or hospices.\n\n Explanation: The abstract specifically mentions nursing homes, which are typically designed for long-term care with the necessary supports, indicating compliance with the exclusion of non-qualifying settings." + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 892, + "completion_tokens": 402, + "total_tokens": 1294 + }, + "system_fingerprint": "fp_aff4b0ea4d" +} diff --git a/tests/testthat/api.openai.com/v1/chat/completions-586c94-POST.json b/tests/testthat/api.openai.com/v1/chat/completions-586c94-POST.json new file mode 100644 index 0000000..3fa7f1c --- /dev/null +++ b/tests/testthat/api.openai.com/v1/chat/completions-586c94-POST.json @@ -0,0 +1,23 @@ +{ + "id": "chatcmpl-98ztaaXO6kyCGWJ3j33WDbAfbUn4b", + "object": "chat.completion", + "created": 1711931578, + "model": "gpt-4-0125-preview", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "1. **Population**: TRUE. The study involves nursing home residents, which fits the population criteria.\n \n Explanation: The abstract directly mentions that the study was conducted with nursing home residents.\n\n2. **Intervention**: TRUE. The intervention in question is therapy alpaca visits, aimed at reducing depression, anxiety, and stress.\n \n Explanation: Therapy alpaca visits are clearly the intervention being tested for their effect on DAS in the study.\n\n3. **Comparison/Control Group**: TRUE. The study includes a control group that spent an equivalent time in a television viewing lounge.\n \n Explanation: The abstract specifies a control arm, fulfilling the criterion for having a comparison or control group.\n\n4. **Outcomes**: TRUE. The study measures outcomes related to depression, anxiety, and stress using presumably validated tools (DASS-21 scores are mentioned).\n \n Explanation: The abstract specifically mentions reductions in depression, anxiety, and stress levels as outcomes, meeting this criterion.\n\n5. **Study Design**: TRUE. The study design is a randomized control trial, fitting within the specified study designs for inclusion.\n \n Explanation: The abstract describes the study as a randomized control trial, which is one of the included study designs.\n\n6. **Geographical Location**: TRUE. There are no geographical restrictions, and the study occurred in Australia.\n \n Explanation: Since no geographical restrictions were specified and the study took place in Australia, this criterion is met.\n\n7. **Publication Date**: UNKNOWN. The publication date is not mentioned in the abstract, so this cannot be determined.\n \n Explanation: Without the publication date mentioned in the abstract, a determination regarding the criterion cannot be made based on the provided information.\n\n8. **Language**: TRUE. The abstract is provided in English, indicating the study is published in English.\n \n Explanation: Since the abstract is presented in English, it's reasonable to conclude the study meets the language criterion.\n\n9. **Population Exclusion**: N/A. This specifically details populations to be excluded, which does not directly apply as the study's population meets the inclusion criteria.\n \n Explanation: Since the population is clearly within the inclusion criteria, this exclusion does not need to be directly evaluated for a true/false response.\n\n10. **Intervention Exclusion**: N/A. This pertains to studies of interventions not related to DAS reduction, which does not apply since the study's intervention targets DAS.\n \n Explanation: The intervention directly targets reducing DAS, making this exclusion criterion not applicable.\n\n11. **Outcomes Exclusion**: N/A. The study measures DAS, which are the outcomes of interest, so studies not measuring these are not applicable here.\n \n Explanation: Since the study does measure DAS outcomes, this exclusion criterion is irrelevant.\n\n12. **Study Design Exclusion**: N/A. The study is an RCT, which is not one of the excluded study designs.\n \n Explanation: The study design matches one of the included types, so the exclusion related to study design types does not apply.\n\n13. **Incomplete Data Exclusion**: UNKNOWN. It's unclear from the abstract if the study has incomplete data or lacks clear methodology reporting.\n \n Explanation: The abstract does not provide enough detail to assess the completeness of data or clarity of methodology.\n\n14. **Single Case Reports Exclusion**: TRUE. This is a large-scale study and not a single case report.\n \n Explanation: With 8,124 participants, this study cannot be considered a single case report." + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 847, + "completion_tokens": 711, + "total_tokens": 1558 + }, + "system_fingerprint": "fp_f38f4d6482" +} diff --git a/tests/testthat/api.openai.com/v1/chat/completions-5edfc0-POST.json b/tests/testthat/api.openai.com/v1/chat/completions-5edfc0-POST.json new file mode 100644 index 0000000..317d3a2 --- /dev/null +++ b/tests/testthat/api.openai.com/v1/chat/completions-5edfc0-POST.json @@ -0,0 +1,23 @@ +{ + "id": "chatcmpl-98zuOm9FfVm54t94UFFntICUiWtpO", + "object": "chat.completion", + "created": 1711931628, + "model": "gpt-4-0125-preview", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "1. TRUE - The source describes primary research on the effect of therapy alpacas on the mental health and emotional well-being of elderly individuals.\n - The abstract mentions conducting a randomized control trial, indicating primary research on therapy alpacas.\n\n2. TRUE - The research focuses on elderly people living in nursing homes, which align with the population definition of residential aged care facilities for individuals 65 years and older.\n - Nursing home residents are implicitly understood to be elderly and the study directly focuses on this demographic.\n\n3. TRUE - The concept of using therapy alpacas in residential aged care facilities for the care of residents is clearly the central theme of the study.\n - The study explicitly mentions the use of therapy alpacas in nursing homes, meeting the conceptual criteria.\n\n4. TRUE - The settings described in the study can be inferred to provide daily living and nursing supports as part of their care, aligning with the definition of residential aged care facilities.\n - The nature of nursing homes as described implies they are long-term residential care facilities that include the specified support and programs.\n\n5. TRUE - The inclusion explicitly requires studies set in long-term residential facilities with comprehensive care, which a nursing home falls under, excluding those settings without support or not intended for long-term residence.\n - By focusing on nursing homes, the study adheres to the criteria, implicitly excluding independent living villages, hospitals, or hospices which do not match the settings of interest.\n\n6. TRUE - The study examines the impact of therapy alpaca programs on depression, anxiety, and stress levels, directly aligning with the desired outcomes of interest like stress reduction and mental health improvement.\n - The results showing significant reductions in depression, anxiety, and stress among nursing home residents receiving alpaca therapy clearly address the impact on emotional well-being and mental health." + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 890, + "completion_tokens": 369, + "total_tokens": 1259 + }, + "system_fingerprint": "fp_d61f808a72" +} diff --git a/tests/testthat/api.openai.com/v1/chat/completions-67c3d4-POST.json b/tests/testthat/api.openai.com/v1/chat/completions-67c3d4-POST.json new file mode 100644 index 0000000..880d31a --- /dev/null +++ b/tests/testthat/api.openai.com/v1/chat/completions-67c3d4-POST.json @@ -0,0 +1,23 @@ +{ + "id": "chatcmpl-98ztyzcE3mLu3DsoBSaNpzj969RVP", + "object": "chat.completion", + "created": 1711931602, + "model": "gpt-4-0125-preview", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "INCLUDE" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 1616, + "completion_tokens": 1, + "total_tokens": 1617 + }, + "system_fingerprint": "fp_a7daf7c51e" +} diff --git a/tests/testthat/api.openai.com/v1/chat/completions-a2d514-POST.json b/tests/testthat/api.openai.com/v1/chat/completions-a2d514-POST.json new file mode 100644 index 0000000..622e459 --- /dev/null +++ b/tests/testthat/api.openai.com/v1/chat/completions-a2d514-POST.json @@ -0,0 +1,23 @@ +{ + "id": "chatcmpl-98ztLOleLxCuducAfZTGWUHH6PU89", + "object": "chat.completion", + "created": 1711931563, + "model": "gpt-4-0125-preview", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "Certainly, here's a structured approach to devising inclusion and exclusion criteria for a scoping review, assuming a general objective related to evaluating interventions to reduce depression, anxiety, and stress in nursing home residents:\n\n### Inclusion Criteria:\n1. **Population**: Studies involving nursing home residents or similarly institutionalized elderly populations.\n2. **Intervention**: Research on interventions designed to reduce depression, anxiety, and stress (DAS).\n3. **Comparison/Control Group**: Studies that include a comparison or control group to assess the effectiveness of the intervention.\n4. **Outcomes**: Studies must measure outcomes related to depression, anxiety, and stress, using validated tools or scales.\n5. **Study Design**: Randomized Control Trials (RCTs), pilot trials, observational studies, case-control studies, cohort studies, and qualitative studies to capture a broad range of evidence.\n6. **Geographical Location**: No restrictions, to include a wide perspective.\n7. **Publication Date**: Studies published within the last 20 years, to ensure relevance and recency of data.\n8. **Language**: Studies published in English, due to language proficiency constraints of the review team.\n\n### Exclusion Criteria:\n1. **Population**: Studies focusing exclusively on populations not living in nursing homes or similar institutional care settings (e.g., community-dwelling elderly, hospitalized patients).\n2. **Intervention**: Studies examining interventions unrelated to reducing DAS (e.g., physical rehabilitation, dietary interventions without a mental health focus).\n3. **Outcomes**: Studies not measuring depression, anxiety, and stress as primary or secondary outcomes.\n4. **Study Design**: Editorials, opinion pieces, reviews, or conference abstracts, as these do not provide original research data.\n5. **Incomplete Data**: Studies with incomplete outcomes data or lacking clear methodology reporting.\n6. **Single Case Reports**: Due to the difficulty in generalizing findings from single individual experiences.\n\nThis set of criteria provides a structured approach to including and excluding sources for a comprehensive scoping review focused on interventions to mitigate depression, anxiety, and stress in elderly nursing home residents." + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 350, + "completion_tokens": 421, + "total_tokens": 771 + }, + "system_fingerprint": "fp_166a8e22c6" +} diff --git a/tests/testthat/api.openai.com/v1/chat/completions-d8fc3b-POST.json b/tests/testthat/api.openai.com/v1/chat/completions-d8fc3b-POST.json new file mode 100644 index 0000000..b203406 --- /dev/null +++ b/tests/testthat/api.openai.com/v1/chat/completions-d8fc3b-POST.json @@ -0,0 +1,23 @@ +{ + "id": "chatcmpl-98zt4YuJIjI8IpaNHxYrjZQlIZCxf", + "object": "chat.completion", + "created": 1711931546, + "model": "gpt-4-0125-preview", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "INCLUDE" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 1162, + "completion_tokens": 1, + "total_tokens": 1163 + }, + "system_fingerprint": "fp_a7daf7c51e" +} diff --git a/tests/testthat/api.openai.com/v1/chat/completions-d93bea-POST.json b/tests/testthat/api.openai.com/v1/chat/completions-d93bea-POST.json new file mode 100644 index 0000000..cb6d1db --- /dev/null +++ b/tests/testthat/api.openai.com/v1/chat/completions-d93bea-POST.json @@ -0,0 +1,23 @@ +{ + "id": "chatcmpl-98zswKGxCRrtn0vtPm5phFBhcnslx", + "object": "chat.completion", + "created": 1711931538, + "model": "gpt-4-0125-preview", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "1. TRUE - The study focuses on nursing home residents, aligning with the population criteria of elderly people living in residential aged care facilities.\n \n Explanation: Nursing home residents are a specific subset of elderly individuals living in long-term residential aged care settings, matching the population defined for inclusion.\n\n2. TRUE - The setting described implicitly meets the definition of a residential aged care facility by mentioning nursing homes, which are understood to provide support for activities of daily living and nursing support.\n \n Explanation: Nursing homes are a type of residential aged care facility that provides the care and support services outlined in the criteria, even though the abstract does not explicitly detail these services.\n\n3. TRUE - The study explicitly investigates the use of therapy alpacas as part of the care programme for nursing home residents.\n \n Explanation: The abstract directly mentions the implementation of therapy alpaca visits, which directly aligns with the concept of using therapy alpacas in care programs for the elderly.\n\n4. TRUE - The research focuses on reducing depression, anxiety, and stress among nursing home residents, which directly relates to their emotional well-being and mental health.\n \n Explanation: By measuring the reduction in depression, anxiety, and stress (DAS) scores, the study specifically assesses the impact of therapy alpacas on emotional well-being and mental health, fulfilling this criterion." + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 832, + "completion_tokens": 272, + "total_tokens": 1104 + }, + "system_fingerprint": "fp_a7daf7c51e" +} diff --git a/tests/testthat/api.openai.com/v1/chat/completions-ea72cf-POST.json b/tests/testthat/api.openai.com/v1/chat/completions-ea72cf-POST.json new file mode 100644 index 0000000..7bf553c --- /dev/null +++ b/tests/testthat/api.openai.com/v1/chat/completions-ea72cf-POST.json @@ -0,0 +1,23 @@ +{ + "id": "chatcmpl-98zuaGgkvr9hQ7Rg7OnjqyWL4oZNn", + "object": "chat.completion", + "created": 1711931640, + "model": "gpt-4-0125-preview", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "INCLUDE" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 1317, + "completion_tokens": 1, + "total_tokens": 1318 + }, + "system_fingerprint": "fp_a7daf7c51e" +}