Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revise GPT prompt #147

Merged
merged 3 commits into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions tests/test_gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@ def test_simple_gpt():
"gpt works". If anything else is outputted, we can
assume an error has occured
"""
surf_summary = "Please only output: 'gpt works!' "

surf_summary = (
"Please respond with the exact phrase 'gpt works'. "
"Do not include any additional text or context."
)

gpt_prompt = "This is for testing purposes"
gpt_response = gpt.simple_gpt(surf_summary, gpt_prompt)
assert "gpt works" in gpt_response
expected_response = "gpt works"

assert gpt_response == expected_response, (
f"Expected '{expected_response}', but got: {gpt_response}"
)
Loading