-
Notifications
You must be signed in to change notification settings - Fork 44
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
Dynamic prompting engine #527
Conversation
🦋 Changeset detectedLatest commit: c12157d The changes in this PR will be included in the next version bump. This PR includes changesets to release 6 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
5825e96
to
f1c77d3
Compare
"cheerio": "1.0.0-rc.12", | ||
"cli-width": "^4.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these server dependencies? Looks CLI dependencies or table dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a dependency for a server script.
d70fc5f
to
5bd4941
Compare
type Props = { params: { prompt?: string }; url: URL } | ||
export async function GET({ params: args, url }: Props) { | ||
try { | ||
const { params, stream } = await getPromptParams(url) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be cool to make this endpoint POST
and allow to pass dynamic prompts from a UI written in a form
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The API is soo similar to queries (this was intended), that I think they should be the same for consistency. That use case could also be applied to queries.
Either both should be GET or both should be POST, but not different types.
5bd4941
to
da6e757
Compare
6d65db8
to
f3be833
Compare
f3be833
to
c12157d
Compare
Describe your changes
New dynamic prompting feature!
prompts
directory in your latitude project.yaml
file configuring your LLM provider.prompt
file with any promptBOOM! A new
/api/prompt/<prompt-name>
endpoint has been automatically created.Screen.Recording.2024-06-21.at.13.05.51.mov
Checklist before requesting a review