Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can openai gpt-turbo-3.5 be supported? #51

Open
jacky68147527 opened this issue Oct 15, 2023 · 0 comments
Open

Can openai gpt-turbo-3.5 be supported? #51

jacky68147527 opened this issue Oct 15, 2023 · 0 comments

Comments

@jacky68147527
Copy link

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},
            ]
        )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant