Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GPT-4 Hates Backticks #101

Closed
Oliver-Turp opened this issue Feb 21, 2024 · 3 comments
Closed

GPT-4 Hates Backticks #101

Oliver-Turp opened this issue Feb 21, 2024 · 3 comments

Comments

@Oliver-Turp
Copy link

Software

Desktop Application

Operating System

Windows

Your Pieces OS Version

8.0.0

Kindly describe the bug and include as much detail as possible on what you were doing so we can reproduce the bug.

I often send code to copilot chat for syntax checking. I have a preference for using backticks over quotation marks as if I want to add additional code in later, I don't have to remove the quotes and add in the backticks

console.log(`this is an example`)
console.log(`this is a ${phrase}`}

When I do this, GPT-4 will suggest changing them but will send back identical code. This is an example I just got.

Yes, there are syntax errors in your code. The issue is with the template literals (strings enclosed in backticks ` `) in your code.
... 

In short, there's nothing wrong with using backticks, but GPT-4 really hates them.

@github-actions github-actions bot added status:new The ticket has been created and is awaiting initial review. app:desktop application os:windows labels Feb 21, 2024
@rosie-at-pieces rosie-at-pieces removed the status:new The ticket has been created and is awaiting initial review. label Feb 25, 2024
@Oliver-Turp
Copy link
Author

Oliver-Turp commented Feb 26, 2024

Update from today, with another example

Looking at your code, it seems like the issue might be with the "description" field in your "embeds" object. You're trying to use a template literal (`<@${discordId}>`), but it's not inside backticks (`), which is causing a syntax error.

GPT-4 referenced the code I'd used, which was in backticks, and expressed that using backticks would fix my issue. It then returned the same code I'd sent in.

@jimbobbennett
Copy link

This is still happening with Pieces Desktop 3.2.2 and Pieces OS 10.1.12. Looks like it is down to how we process the backticks in the copilot input, I assume we're converting from markdown.

@sam-at-pieces
Copy link

This should be resolved in the next release, some of our pipelines were scrubbing backticks (early versions of the gpt models would sometime answer in Portuguese if they were left in)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants