The model docs for GPT-4 say “Like gpt-3.5-turbo , GPT-4 is optimized for chat but works well for traditional completions tasks.”
But when I try to use model='gpt-4' in the v1/completions endpoint, I get this error InvalidRequestError: This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?
Hey @christmas. Welcome to the community
When OpenAI talks about “traditional completion tasks” in this context, they do not refer to the completions endpoint. You can reproduce “traditional completion tasks” in the chat mode by sending a single pair of messages, for instance. A system message that instructs the model about what to do, and a user message as the whole context for the completion. The returned assistant message will be the result of the completion.
I agree that can be a little bit misleading. But that’s the current state of affairs . Hope it helps!!