I have been trying to understand what is the suffix prompt in addition to the prefix prompt in Codex.
They have provided an example
def get_largest_prime_factor(n):
if n < 2:
return False
def is_prime(n): > for i in range(2, n): > if n % i == 0: > return False > return True > largest = 1
for j in range(2, n + 1):
if n % j == 0 and is_prime(j):
return largest
From this example it is not clear to me how to create a suffix prompt?
What I understand is suffix prompt is for code insert model. My use case is also insert
mode i.e., code needs to be updated in the middle of a code snippet.
Can anyone please provide a snippet showing how I can use the suffix prompt so that Codex works in the insert mode?