Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ both schemas. If you're running `lightspeed-stack` without a database
configuration you can use `make sqlite` to browse the contents of the temporary
SQLite database.

## Configuration flags

- `DISABLE_QUERY_SYSTEM_PROMPT` (default: `false`): maps to `customization.disable_query_system_prompt` in Lightspeed Stack. When `true`, requests including `system_prompt` are rejected with HTTP 422.
- `DISABLE_QUERY_MODEL_OVERRIDE` (default: `false`): maps to `customization.disable_query_model_override` in Lightspeed Stack. When `true`, requests including `model` or `provider` are rejected with HTTP 422.

## Override

Expand Down
1 change: 1 addition & 0 deletions template-params.dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ LLAMA_CLIENT_CONFIG_PATH=llama_stack_client_config.yaml
LIGHTSPEED_TRANSCRIPTS_ENABLED=false
LIGHTSPEED_FEEDBACK_ENABLED=false
DISABLE_QUERY_SYSTEM_PROMPT=false
DISABLE_QUERY_MODEL_OVERRIDE=false
ASSISTED_CHAT_DEFAULT_MODEL=gemini/gemini-2.0-flash
LIGHTSSPEED_STACK_POSTGRES_SSL_MODE=disable
AUTHN_ROLE_RULES='[{"jsonpath":"$.realm_access.roles[*]","operator":"contains","value":"redhat:employees","roles":["redhat_employee"]}]'
Expand Down
4 changes: 4 additions & 0 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ parameters:
- name: DISABLE_QUERY_SYSTEM_PROMPT
value: "true"
description: "Corresponds to the lightspeed config customization.disable_query_system_prompt"
- name: DISABLE_QUERY_MODEL_OVERRIDE
value: "false"
description: "Corresponds to the lightspeed config customization.disable_query_model_override"
- name: ASSISTED_CHAT_DEFAULT_MODEL
value: gemini-2.0-flash
- name: USER_ID_CLAIM
Expand Down Expand Up @@ -188,6 +191,7 @@ objects:
customization:
system_prompt_path: "${SYSTEM_PROMPT_PATH}"
disable_query_system_prompt: ${DISABLE_QUERY_SYSTEM_PROMPT}
disable_query_model_override: ${DISABLE_QUERY_MODEL_OVERRIDE}
inference:
default_model: ${ASSISTED_CHAT_DEFAULT_MODEL}
default_provider: gemini
Expand Down