You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'