Hacker News new | past | comments | ask | show | jobs | submit login

Ok, dumb question, but does the API skip over the whole, "Thanks for asking that question, here's what I found:" stuff I keep seeing in ChatGPT when I ask it to generate non-text responses?

Even when I ask it the "generate a 10 row csv containing sample chipotle restaurant order data with headers" prompt, I get "Sure, here's an example CSV file with 10 rows of sample Chipotle restaurant order data, including headers:" at the top...




Yes, echoing the input prompt is a feature of the API, which most people don't turn on by default, likely because it eats more output tokens: https://platform.openai.com/docs/api-reference/completions/c...


Are you using the API endpoint or browser chatgpt? I tried it 5 times via API and it works and then 2 times via the browser and it doesn't work. They are different models.

If you are using the API try lowering the temperature mb?


Add: I only want the CSV, don’t describe what you are doing.


Heh nope, I still get the whole "Sure, here's an example of a CSV file with 10 rows of sample Chipotle restaurant order data:"

I wonder if the web UI has some additional "explain everything you do" prompt injection stuff going on.


My favorite trick is to ask for JSON, and tack this onto my prompt: "Return JSON, beginning with {"


Hmm works with GPT-4 but I see what you mean with turbo.

Edit: got it to work with

Output an example of a CSV document with 10 rows containing sample chipotle restaurant order data. Do not start with any other text.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: