{
"id": "cmpl-uqkvlQyYK7bGYrRHQ0eXlWi7",
"object": "text_completion",
"created": 1589478378,
"model": "code-davinci-002",
"choices": [
{
"text": "\n\nThis is indeed a test",
"index": 0,
"logprobs": null,
"finish_reason": "length"
}
],
"usage": {
"prompt_tokens": 5,
"completion_tokens": 7,
"total_tokens": 12
}
}
#Explain code API help
22 messages · Page 1 of 1 (latest)
this is the sample response they give in the api but I got something way different than that
比特币
try looking in:
response.data.choices[0].text
for the text response
i got this
do you have any clue

What was the prompt you passed in? Semicolon may be all that it returned. Also tweak your temperature and see if anything else pops out
System.out.print(“yes”)
I tried this
So it gives me the semicolon it left out?
🤔
I thought it will explain my code
I tried
“This is a test”
Too
It returns “This is a”
The api is working then, now it’s probably better to use the playground to come up with a prompt that will get you your desired outcome!
Try playing with max_tokens and stop sequences
ok let me test
Thank you so much