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
response = openai.Completion.create(
engine="text-davinci-003",
prompt=f"translate the following text into English:\n{main_prompt}",
max_tokens=max_tokens,
n=1,
stop=None,
temperature=0.5,
)
change to
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[
{"role": "system", "content": "translate the following text into English:\n"},
{"role": "user", "content": main_prompt},
]
)
The text was updated successfully, but these errors were encountered:
change to
The text was updated successfully, but these errors were encountered: