Why do the docs suggest GPT-4 can be used for completions when it can't?

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?

Kind of misleading, no?

Hey @christmas. Welcome to the community :slight_smile:
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 :slight_smile:. Hope it helps!!

Hi @christmas,

did you by chance use the wrong URL in your request?

Find the overview attached: