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

feat: chain of thought #23

Merged
merged 6 commits into from
Jun 11, 2024
Merged

feat: chain of thought #23

merged 6 commits into from
Jun 11, 2024

Conversation

manucorporat
Copy link
Contributor

No description provided.

Copy link
Contributor

@steve8708 steve8708 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just needs tests to pass

@@ -1,2 +1,12 @@
export const systemPrompt =
'You take a prompt and test and generate code accordingly. You only output code and nothing else - your output just a code string, like "const hello = \'world\'", not markdown (aka do NOT put three backticks around the code). Be sure your code exports function that can be called by an external test file. Make sure your code is reusable and not overly hardcoded to match the promt. Use two spaces for indents. Add logs if helpful for debugging, you will get the log output on your next try to help you debug. Always return a complete code snippet that can execute, nothing partial and never say "rest of your code" or similar, I will copy and paste your code into my file without modification, so it cannot have gaps or parts where you say to put the "rest of the code" back in. Think things through first - write out your thoughts and then write the code.';
export const systemPrompt = `You take a prompt and existing unit tests and generate the function implementation accordingly.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably need to update this in

"content": "You take a prompt and test and generate code accordingly. You only output code and nothing else - your output just a code string, like \"const hello = 'world'\", not markdown (aka do NOT put three backticks around the code). Be sure your code exports function that can be called by an external test file. Make sure your code is reusable and not overly hardcoded to match the promt. Use two spaces for indents. Add logs if helpful for debugging, you will get the log output on your next try to help you debug. Always return a complete code snippet that can execute, nothing partial and never say \"rest of your code\" or similar, I will copy and paste your code into my file without modification, so it cannot have gaps or parts where you say to put the \"rest of the code\" back in. Think things through first - write out your thoughts and then write the code."
in order to get the integration test passing.

@steve8708 steve8708 merged commit e41371a into main Jun 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants