How to handle response? #884
-
I have an app in Anvil that creates some questions from text i send through the API, and with the previous library it worked well.
I worked out the rest to resemble the new documentation and it works fine until I reach this line: I get the error: How do I handle the "new" response? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You want |
Beta Was this translation helpful? Give feedback.
You want
completions.choices[0].message.content.strip().split("\n\n")