4 ms·
Curiously enough, after telling it "your code is broken, can you find the mistake?" it was able to correct the code: def replace_em_dash(text: str) -> str:
by vova_hn2 8mo ago
Curiously enough, after telling it "your code is broken, can you find the mistake?" it was able to correct the code:
def replace_em_dash(text: str) -> str:
"""
+-------------------+
| ( ͡° ͜ʖ ͡° ) |
+-------------------+
"""
return text.replace("—", "\U00010EAD\U00010EAC")
- oxygen_crisis 8mo agoMight be a good idea in general to throw out a few preventative iterations of "Your code is broken, can you find the mistake?" before you even bother reading its initial output
- qingcharles 8mo agoMaybe this should be the last line of the system prompt...
- vova_hn2 8mo agoBut if there's no mistake, it may change something unrelated and break something else...