Skip to content

Add a cloud flag to generateSystemPrompt in lang-core - #1117

Merged
AbhinRustagi merged 10 commits into
mainfrom
abhin/lang-core-cloud-prompt
Sep 2, 2026
Merged

Add a cloud flag to generateSystemPrompt in lang-core#1117
AbhinRustagi merged 10 commits into
mainfrom
abhin/lang-core-cloud-prompt

Conversation

@AbhinRustagi

Copy link
Copy Markdown
Contributor

Summary

  • generateSystemPrompt({ cloud: true }) in lang-core now emits Cloud's config sentinel instead of a locally generated prompt.
  • Custom libraries still go on the wire as { chatLibrary, systemPromptOptions }; docs updated to match.

Test plan

  • cd packages/lang-core && pnpm test (prompt tests)
  • Confirm generateSystemPrompt({ cloud: true }) starts with ]]>openui:config
  • Confirm a custom library + promptOptions only sends preamble / examples / additionalRules

OpenUI Cloud now gets its system prompt from lang-core via `{ cloud: true }`, so callers emit the muse config sentinel instead of a locally generated prompt.
@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openui-docs Ready Ready Preview Sep 2, 2026 8:38am UTC

Request Review

Keep the same issue codes and messages, without a schema layer in between.
Callers don't need validateChatLibrary; Cloud prompt generation already runs it.
No separate ChatLibrary type — generateSystemPrompt accepts the same spec and omits `components` from the config block.
Callers only need the prompt string — the marker and library version are wire details.
Public code should talk about OpenUI Cloud, not backend service names.
AbhinRustagi and others added 4 commits September 2, 2026 14:01
Self-hosted prompts already have preamble and additionalRules; extra prose after the config block is Cloud-specific.
Updated README to clarify usage of OpenUI Cloud and deprecated prompt generation method.
Callers bring a library, they do not register a custom one.
@AbhinRustagi
AbhinRustagi merged commit a1db90b into main Sep 2, 2026
4 checks passed
@AbhinRustagi
AbhinRustagi deleted the abhin/lang-core-cloud-prompt branch September 2, 2026 09:04
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