Hello, this I assume is a relatively simple question that I just can’t find an answer to. I want to separate the contents of the “text” field in the output from the rest of the output.
Output:
{
"id": "cmpl-7V3RvHknXFbw3FRXUdyxz9YBdSlBC",
"object": "text_completion",
"created": 1687635783,
"model": "text-davinci-003",
"choices": [
{
"text": "lorem ipsum",
"index": 0,
"logprobs": null,
"finish_reason": "length"
}
],
"usage": {
"prompt_tokens": 10,
"completion_tokens": 16,
"total_tokens": 26
}
}
What I need:
> lorem ipsum