Thanks to visit codestin.com
Credit goes to github.com

Skip to content

adds unit test example #35

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

Merged
merged 1 commit into from
Nov 15, 2022
Merged

adds unit test example #35

merged 1 commit into from
Nov 15, 2022

Conversation

ted-at-openai
Copy link
Collaborator

Adds a unit test example that illustrates how to use multiple prompts and some other flourishes to get more reliable performance from GPT-3.

@ted-at-openai ted-at-openai merged commit e3395df into main Nov 15, 2022
@ted-at-openai ted-at-openai deleted the ted/unit-test-example branch December 12, 2022 19:21
@kevinjyh
Copy link

kevinjyh commented Mar 13, 2023

The ipynb you wrote is really great for me, it helps me understand pytest and related testing concepts.

However, when I use the tested function "def is_palindrome(s)" from the tutorial, there will be non-green output text (newline=\n) at the end, but no error message, so I can't figure out what the problem is.

If I use my own tested function, I often get the error message "ChunkedEncodingError: ("Connection broken: InvalidChunkLength(got length b'', 0 bytes read)", InvalidChunkLength(got length b'', 0 bytes read))" which occurs in the "{GENERATED IN STEP 3}" stage. Do you have any resources that can help me solve my confusion? Because I really love this ipynb, it is very helpful to me.

the result of "def is_palindrome(s)"

1678710438914

the result of my function_to_test

1678709994019

syusuke9999 pushed a commit to syusuke9999/openai-cookbook that referenced this pull request May 12, 2023
katia-openai pushed a commit that referenced this pull request Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants