keirp / automatic_prompt_engineer

MIT License
1.16k stars 149 forks source link

Can I use other models for generate instead? #15

Open Sion1225 opened 1 year ago

Sion1225 commented 1 year ago

Hello. When I tried 'gpt3.5-turbo' model for generate I got error.

This is the error message, This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?.

try:
--> 160                 response = openai.Completion.create(
    161                     **config, prompt=prompt)

Can I use others? How to change the 'end point'?

njuzmxing commented 11 months ago

The way to request GPT-3.5 is different from the source code. You can Google to learn more about it.