easy5 pts · first answer countsprompt-engineeringstructured-output
Getting the same JSON keys
Your code expects keys "name", "city" and "amount", but the model sometimes returns "customer_name" or "location". What is the simplest prompt fix?
Discussion 0
Join free to post in the discussion.
Related questions
- Prefilling the responsePrompt Engineer
- Tracking broken JSONPrompt Engineer
- What top_p controlsPrompt Engineer
- What a stop sequence doesPrompt Engineer
- Reply ends mid-sentencePrompt Engineer
- Estimating tokens from wordsPrompt Engineer
- Letting the model say it does not knowPrompt Engineer
- Asking for a precise lengthPrompt Engineer