Code QuizIntermediate Stop Sequence Cuts Output Early
Identify why a stop sequence truncates answers prematurely.
Codejavascript
const res = await client.chat.completions.create({
model: "gpt-4o",
messages,
// Stop once the answer sentence ends
stop: ["."],
});Why does this often produce incomplete answers?