Prompt Details
Model
Completion - GPT-3 (text-davinci-002)
Token size
248 ($0.01010 / call)
Example input
Code: totals = settings?.settings?.excluded
?settings?.settings?.excluded?.split(',')?.filter((x) => !!x.trim())
: [];
Error: Uncaught (in promise) TypeError: _settings$settings2$e.split is not a function
Example output
totals = settings?.settings?.excluded
?settings?.settings?.excluded?.toString()?.split(',')?.filter((x) => !!x.trim())
: [];
Or get it with Select10 Select prompts/mo — under $2 each
Learn moreBy purchasing this prompt, you agree to our terms of service
TEXT-DAVINCI-002
Given a piece of code that causes an error, and the error it causes, this prompt uses reasoning to determine what to do, and then it outputs the fixed, error-free code.
...more
Added over 1 month ago

