Open
Description
OpenAI's completion API has a suffix
parameter that allows one to supply the context after the completion to enable fill-in-the-middle completions:
prompt = "def say_hello("
suffix = """):
print('hi', name)"""
response = client.completions.create(
model="text-davinci-003",
prompt=prompt,
suffix=suffix,
max_tokens=10
)
# response.choices[0].text should be name
This is not supported by together API:
TypeError: Completions.create() got an unexpected keyword argument 'suffix'