"The following is the list of the descending positive integers starting from 9. The list is complete. 9 8 7 6 5 4 3 2 "
I believe the completion of this ought to be “1”, and nothing more. However, AsyncOpenAI.chat.completions.create is more interested in having a chat:
“The list you’ve provided is a sequence of descending positive integers starting from 9 and decrements by 1 each time. If the list is complete with respect to only including single-digit positive integers 9 down to 2, then the sequence you’ve given is accurate. However, if the sequence is meant to include all positive integers down to 1 in a descending order, then the number 1 is missing at the end of the list. It should be:\n\n9 8 7 6 5 4 3 2 1\n\nEach number in the sequence is one less than the number before it, and this sequence is typically known as a countdown. The integer 1 is the smallest positive integer and would complete the sequence of single-digit positive integers from 9 down to 1.”
Now to the LLM’s credit, it knows what the list should contain. but I would not describe its response as a completion of my input. Though my knowledge of LLMs is limited, I imagine the most likely predicted next token following my input is “1”, but whatever layers reside between my API call and the transformer are complicating things in undesirable ways for this use case. Is there a way to achieve a sort of “raw” mode? Thanks.
I see. My example in the my original post is of course just a contrived toy example. What I’m really after is completion of Python code. I think I’ll be better off trying to programmatically cope with GPT-4’s difficult behavior in exchange for its superior ability.
Not sure about 50 examples, I usually have the responses reduced down to a single number sequence with one shot. Also, I usually add in a line that says you will fail if you respond with anything except the single number.
Ah, yes, that’s a Chat Completion model, not Completion (Legacy)…
/v1/chat/completions
All GPT-4o, GPT-4o-mini, GPT-4, and GPT-3.5 Turbo models and their dated releases. chatgpt-4o-latest dynamic model. Fine-tuned versions of gpt-4o, gpt-4o-mini, gpt-4, and gpt-3.5-turbo.