Skip to content

Add /system-as-user for models without system role support.#493

Open
ajac-zero wants to merge 2 commits intolmstudio-ai:mainfrom
ajac-zero:system-as-prompt
Open

Add /system-as-user for models without system role support.#493
ajac-zero wants to merge 2 commits intolmstudio-ai:mainfrom
ajac-zero:system-as-prompt

Conversation

@ajac-zero
Copy link
Copy Markdown

@ajac-zero ajac-zero commented Mar 4, 2026

Addresses #458

Currently, lms chat injects a system prompt into every conversation, but not all models (such as Mistral 7b) support the system role.

This PR adds a new toggle command /system-as-user, which sets the role of the system prompt as user when enabled. This allows the command to work with Mistral 7b and similar models without omitting the system prompt entirely.

Current error:
image

New command:
image

Successful response:
image

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 4, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f11b9554a9

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ajac-zero
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

@github-actions github-actions bot added the CLA signed Indicates if all contributors have signed the CLA label Mar 4, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b2085c28a0

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@ajac-zero ajac-zero changed the title Add /system-as-prompt command Add options for models without system role support. Mar 4, 2026
@ajac-zero ajac-zero changed the title Add options for models without system role support. Add /system-as-user for models without system role support. Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA signed Indicates if all contributors have signed the CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant