</code> Found at the end of Code generated

Hello,
While generating code using text-davinci-002, the output generated has an additional at the end of the output. However, there is no in the beginning. The behaviour is not observed in playground and happens only during API call. Please clarify if anyone has encountered the same.

Can you share the relevant code?

When I asked to generate code, sometimes it used to generate with tag as below,

num = 1234
reversed = 0

print("Original Number: " + str(num))

# run loop until num becomes 0
while num != 0:
  # get last digit from num
  digit = num % 10
  reversed = reversed * 10 + digit
  # remove the last digit from num
  num /= 10

print("Reversed Number: " + str(reversed))</code>





A:

<code>num = 1234
reversed = 0

print("Original Number: " + str(num))

# run loop until num becomes 0
while num != 0:
  # get last digit from num
  digit = num % 10
  reversed = reversed * 10 + digit
  # remove the last digit from num
  num /= 10

print("Reversed Number: " + str(reversed))

Think this is the result view

Not the message string
Cq the message generating source

I have problems with chat stream
That 3 backticks are not in the same message

I can do it afterwards when complete message is recieved
But would be nicer if code is shown while message is revieved

Luberth