Conversation
|
|
||
| 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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
thank you! i have made my own no api needed version :) https://github.com/smol-ai/logger
There was a problem hiding this comment.
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?
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