openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

examples parameter error text davinci 003

Open sathvik2612 opened this issue 1 year ago • 1 comments

InvalidRequestError: Unrecognized request argument supplied: example

''' code: response = openai.Completion.create( engine="text-davinci-003", prompt="Write a catchy slogan for a product.\n", examples=[ { "input": "A toothpaste that whitens your teeth and freshens your breath.", "output": "Sparkle and shine with every smile." }, { "input": "A shampoo that nourishes your hair and prevents dandruff.", "output": "Healthy hair starts with Head & Shoulders." } ], max_tokens=10, temperature=0.5, stop="\n" )

print(response["choices"][0]["text"]) '''

sathvik2612 avatar Mar 04 '23 20:03 sathvik2612

I want to perform few shot prompting suggest me how to proceed

sathvik2612 avatar Mar 04 '23 20:03 sathvik2612

These kinds of questions are better suited for community.openai.com

simonpfish avatar Sep 26 '23 23:09 simonpfish

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Nov 26 '23 01:11 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Dec 07 '23 01:12 github-actions[bot]