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

initial refactor of prompts #63

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

initial refactor of prompts #63

wants to merge 2 commits into from

Conversation

swyxio
Copy link
Contributor

@swyxio swyxio commented Jun 1, 2023

just putting this up to show what i'm thinking - if you are thinking of making a PR, do read thru so as to understand where my head is at


def planPrompt2(sourcePrompt, filepaths_string):

return """You are an AI developer who is trying to write a program that will generate code for the user based on their intent.
Copy link

@teremterem teremterem Jun 4, 2023

Choose a reason for hiding this comment

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

Hi, I think you forgot to put f before the quotes (like this f"""). But be careful, if you decide to fix it - you don't want the {prompt} to appear twice in the request to OpenAI (because you also add prompt as a user message right after this system message).

Generally speaking, I would highly recommend using a tool like PromptLayer (I'm not affiliated with them, I just find their product handy) to keep track of what is actually sent to OpenAI. A hint on how it can be added to this project can be found here: https://github.com/smol-ai/developer/pull/74/files

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thank you! i have made my own no api needed version :) https://github.com/smol-ai/logger

Choose a reason for hiding this comment

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

Hey! A tool that logs LLM prompts and responses locally without sending the logs to the cloud sounds like a great idea! Can your tool be used from Python, or is it purely for Javascript projects?

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.

2 participants