23 unmodified lines242526272728293023 unmodified lines #temperature = 0.3, #top_p = 0.3 ): token = messages.choices[0].delta.content token = message.choices[0].delta.content response += token yield response # change length using max_tokens