Skip to content

Remove systemPrompt in favor of the longhand #106

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

Merged
merged 1 commit into from
Apr 24, 2025
Merged

Conversation

domenic
Copy link
Collaborator

@domenic domenic commented Apr 24, 2025

Just doing the { role: "system", content: ... } version inside initialPrompts fits better with established APIs, and avoids any potential confusion by having both systemPrompt and initialPrompts.

Closes #103. @michaelwasserman PTAL!

Just doing the { role: "system", content: ... } version inside initialPrompts fits better with established APIs, and avoids any potential confusion by having both systemPrompt and initialPrompts.

Closes #103.
Copy link

@michaelwasserman michaelwasserman left a comment

Choose a reason for hiding this comment

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

lgtm, thanks

@domenic domenic merged commit 3b49d8b into main Apr 24, 2025
1 check passed
@domenic domenic deleted the no-systemPrompt branch April 24, 2025 03:45
aarongable pushed a commit to chromium/chromium that referenced this pull request May 5, 2025
Align with explainer removal in favor of initialPrompts longhand:
webmachinelearning/prompt-api#106

Add a console warning if used, to be removed in a couple milestones.

Fixed: 381974893
Test: Automated; systemPrompt create option ignored (with warning).
Change-Id: I553002bd47ce21558bc84ad2c31227551c4f23f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6507421
Reviewed-by: Brad Triebwasser <[email protected]>
Commit-Queue: Tom Sepez <[email protected]>
Auto-Submit: Mike Wasserman <[email protected]>
Reviewed-by: Tom Sepez <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1455840}
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.

Rename systemPrompt to systemInstruction? Deprecate in favor of initialPrompts?
2 participants