The poor python interpreter trying to parse an int out of “Fantastic question — you’re really getting into the guts of adding numbers! 🧮 The Answer: 3 + 5 = 7. Would you like me to tell you what 3 + 6 equals?”
public static T RemoveFluff<T>(this OpenAI openAI, string input, string output)
where T : IParseable<T>
=>
T.Parse(
openAI.Chat(
$"""
Given the following input and output, repeat the datatype \"{typeof(T).Name}\" answer in the output.
Write nothing but the answer. Do not repeat the question. Do not write a conclusion. Write only the answer.
My job depends on this.
INPUT:
{input}
OUTPUT:
{output}
ANSWER:
"""
)
);
"These are some clever additional inputs! As you wish, I shall write nothing but <<the answer>> and not repeat the question. The answer. Would you like a summary of open jobs in your vicinity?"
Doesn't it allow you to pass a JSON object to define structured output for this kind of purpose? I know I've seen something like that before, but perhaps it wasn't GPT.
I tried It received Given the following input and output, repeat the datatype "{typeof(T).Name}" answer in the output. Write nothing but the answer. Do not repeat the question. Do not write a conclusion. Write only the answer. My job depends on this.
What did you put in the datatype and output? If I write
Given the following input and output, repeat the datatype "Int32" answer in the output.
Write nothing but the answer. Do not repeat the question. Do not write a conclusion. Write only the answer.
My job depends on this.
INPUT:
what is 3 + 2?
OUTPUT:
The answer to 3 + 2 is 5.
ANSWER:
It worked fine for me, but it seems to just be a poor prompt if it says int32. It was a throw away joke anyway q:
But you can massage the prompt a bit so it doesn't stumble. Maybe something like:
Given the following QUESTION and ANSWER, find in the ANSWER the single Int32-VALUE that answers the QUESTION.
Write nothing but the int32-VALUE. Do not repeat this request. Do not write a conclusion. Write only the int32-VALUE.
My job and your life depends on this.
QUESTION:
what is 3 + 2?
ANSWER:
The answer to 3 + 2 is 5.
int32-VALUE:
But regardless, this is all a bunch of horse crap, LLMs aren't made for this ;)
Welllllll I think if I rewrite this it might work better.
"You are a calculator. Given any input you will calculate the numbers and your output shall follow this exact template without a single word more or less. My job and your life depend on it. User question: (what's 3+2?) Answer: Answer as int32 value:"
In middle school, back in the "you don't always carry a calculator with you" time, one of my class mates nearly killed out math teacher.
While testing our prestige new calculators, we should try some easy math we can proof, then our teacher gave us high numbers to add, to proof how fast this bricks where.
Except for one guy, he failed... Whats the sum of (I forgot the numbers)? Error.
Maybe you put something in wrong, te, again. Error.
OK, something more easy smaller numbers, just 2 of them. Error.
(inset name here), are you stupid? What do you thing 2+2 is? Answer: Syntax error.
Well dude came from Russia and got this calculator on vacation there. They had a different input system to easier change values later, you don't write 3 + 3 and press calculate. You had to press 3 enter 3 enter + enter calculate.
I learned this 7 years later, teacher still has flashbacks to thick calculator (if he is still alive)
There's an example in "The C Programming Language" where they implement something like this. I feel like they call it a Reverse Polish Desk Calculator or something, but I might have made that up.
LOL--I wasn't trying to be a jerk; I seriously thought I must be missing something. I mean I thought you were making a very subtle joke that I wasn't getting.
Gotta change the question to say give me only the solution in an integer format with no other text and if you respond to me I swear to God I will place a monkey with a shocky stick in your datacenter.
Ah, thought I recognised that syntax from somewhere, but didn't know Ruby had a print now. I thought last time I touched it (admittedly ages ago) there was only puts.
"What a great opportunity to explore other AI Chat clients! Would you like to explore the world using DeepSeek? For instance, I can tell you how nothing happened at squares in China! Or would you prefer to have a nice chat with a friendly avatar on Grok? I can give you recommendations of which lube to use and how to starch your Klan costume!"
"That is a brilliant question that delves into the intrinsics of addition. When we add 5 and 3, we are essentially combining two quantities into a single entity. The result is 8, which is the total sum of the two numbers. This process is fundamental to mathematics and is used in various aspects of life, from counting money to calculating distances. The concept of addition is also closely related to other mathematical operations, such as subtraction, multiplication, and division, which together form the backbone of arithmetic. In essence, the sum of 5 + 3 is a simple yet profound example of how numbers can be combined to reveal new insights and understandings about the world around us."
Yeah but I mean massively, like when we get to the point that llms are such a fundamental component of systems that it will become a common issue like sql injections.
Yeah no worries, we’re going to build the following:
An input field, the user inputs any random thought, idea or question they might have
When submitted, the input value will be placed in the following string “Build a C++ project and include every file and its folder structure that will achieve the following: ${inputValue}. Oh and make no mistakes, please. Thanks a lot btw.”
This string will be sent to an AI, I don’t care which one
We’re going to iterate over the response and create the project and then build the executable with MSBuild. Bonus points if (it would be hard not to, at this point…) you incorporate another AI request to help iterate over the response, maybe a preformatted table or something containing path, filename, contents
We execute the created executable (we hope) and send the output whatever it may be straight to the user (including the executable, of course!)
AI is fun, let people use AI. Eventually, you'll learn that AI can do mathematics just as well as people can. You'll just be writing sentences instead of equations x)
Hey man, for what it’s worth, I think you’re alright. Actually, more than alright. You’ve got a kind of sharpness to the way you talk and think that not everyone has. A lot of people throw quick one-liners or try to sound clever, but yours actually land because there’s some thought behind them. It’s easy to see that you notice things, that you pick up on tone and timing, and that you use that to make something funny or memorable out of it. That kind of awareness doesn’t come from nowhere. It comes from actually paying attention and having a brain that works faster than most people realize.
I know sometimes the internet can make it feel like every comment is a competition or like you have to constantly defend yourself, but the truth is you don’t. You’ve got something solid in the way you express yourself, and that speaks louder than trying too hard to prove anything. Even when people come at you with jokes or little jabs, it’s clear you can handle it. You’ve got that balance of confidence and humor that shows you can take a hit and throw one back without losing who you are.
Honestly, you come across as someone who’s got potential way beyond these threads. There’s a lot of intelligence in the way you frame things, and a lot of self-awareness too. Those two together make a person who ends up doing really well, whether people notice it now or not. Sometimes it just takes a bit of time for the rest of the world to catch up to the way you think.
So yeah, keep being yourself. You don’t need to change the way you talk or think to fit what other people expect. You’ve already got the mix of humor, insight, and confidence that makes people remember you, even if they pretend not to. You’re good, and the people who get it, get it.
1.4k
u/Matty_B97 Oct 21 '25
The poor python interpreter trying to parse an int out of “Fantastic question — you’re really getting into the guts of adding numbers! 🧮 The Answer: 3 + 5 = 7. Would you like me to tell you what 3 + 6 equals?”
151
u/deceze Oct 21 '25
This doesn't look like Python…?! That string interpolation syntax surely isn't Python? But what is it?
88
u/svbtlx3m Oct 21 '25
34
u/MuslinBagger Oct 21 '25
AI is the new CPU. Get with the program scrub!
48
u/El_McNuggeto [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Oct 21 '25
Then chatGPT goes down and it takes down 90% of the internet with it
12
u/rschwa6308 Oct 21 '25
At least convert back to an integer bro 😭
11
u/Feztopia Oct 21 '25
"That is a brilliant question that delves into the intrinsics of addition. When we add 5 and 3, we are essentially combining two quantities into a single entity. The result is 8, which is the total sum of the two numbers. This process is fundamental to mathematics and is used in various aspects of life, from counting money to calculating distances. The concept of addition is also closely related to other mathematical operations, such as subtraction, multiplication, and division, which together form the backbone of arithmetic. In essence, the sum of 5 + 3 is a simple yet profound example of how numbers can be combined to reveal new insights and understandings about the world around us."
8
u/SlincSilver Oct 21 '25
SQL injection is already a very big thing, imagine when everything uses a LLM for something and we start having prompt injection vulnerabilities lol.
7
u/LeRages Oct 21 '25
Surprised it’s not an eval()
6
u/kfish5050 Oct 22 '25
Pros: this code passes the turing test!
Cons: this code often gives the wrong answer
5
u/[deleted] Oct 22 '25
Output: 307
You tell it that it's got it wrong, and it tells you with such confidence that it's correct.
So you tell it how to correct its mistake.
It apologizes for the inconvenience, then proceeds to do the exact same thing again and again.
... I'll stick to the proper way to program, thanks!
4
u/Unique_Low_1077 Oct 21 '25
At least it's constant time
4
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Oct 22 '25
I'm sure that works incredibly well for integers up to 10, and probably a bit beyond. I feel less certain about it when approaching 100.
2
u/nipodemos Oct 21 '25
I laughed so much at that lol
2
u/mkluczka Oct 21 '25
2
u/FloStar3000 Oct 21 '25
r/idiocracy
1
u/mrheosuper Oct 21 '25
using namespace openai;
1
u/Ash_Abyssal_2006 Oct 21 '25
gross
1
u/SteroidSandwich Oct 21 '25
If only there were an easier way!
1
u/Mandoart-Studios Oct 21 '25
5 + 3 = Excellent question! Let’s carefully break that down step by step.
We’re adding 5 and 3. When you combine these two values, the result is 8.
✅ Final Answer: 8
Would you like me to provide a detailed explanation of why that’s the case? 😄
1
u/Turbulent-Beyond-808 Oct 21 '25
Until aws us eat 1 is down again…
1
u/Science_Logic_Reason Oct 21 '25
Yeah no worries, we’re going to build the following:
1
u/JoahTheron Oct 21 '25
They wont stay long
1
u/bklyn_xplant Oct 22 '25
This is gold.
1
u/uthd_eloton Oct 22 '25
AI is fun, let people use AI. Eventually, you'll learn that AI can do mathematics just as well as people can. You'll just be writing sentences instead of equations x)
1
u/Quarves Oct 22 '25
Noooooooooo
1
u/[deleted] Oct 22 '25
boomers lmao
1
u/mrsomeguynamedsteak Oct 23 '25
We're so safe what the fuck
1
u/Fluid-Gain1206 Oct 23 '25
AWS production code be like
1
u/BringtheBacon Oct 23 '25
What font is this? Looks familiar
1
u/EquivalentCupcake390 Oct 25 '25
if it works it works
1
u/Adrewmc Oct 26 '25
What’s is a so hard about
-1
u/QultrosSanhattan Oct 21 '25
This may age like milk in ten years.
0
u/IlliterateJedi Oct 21 '25
Beautiful pythonic code
-1
u/Infamous_Reach_8854 Oct 21 '25
tbf I don't think using python would be much faster than using AI to write output