Skip to content

docs: configure AI providers and recommendations from the deployment document - #446

Merged
zZebrahz merged 14 commits into
mainfrom
docs/deployment-ai-providers
Nov 26, 2026
Merged

zZebrahz merged 14 commits into
mainfrom
docs/deployment-ai-providers

Conversation

@Quick104

@Quick104 Quick104 commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #445

The plugin provisioning document is now Silo's deployment document. Besides plugins, it can connect AI providers, and three new variables set up recommendations, so a Compose, Kubernetes, or NixOS deployment can configure AI services without the admin pages. The docs covered only plugins under the old variable names.

The server change is Silo-Server/silo-server#4668, stacked on Silo-Server/silo-server#4665. Both are merged, and the pages were checked again against main.

Pages changed

Page Change Preview
Configure Silo from a deployment document (was "Provision plugins from deployment configuration") Retitled; four variable names; new section "Connect AI providers"; releasing providers; examples use SILO_CONFIG_FILE Open
Configure AI services New section "Connect providers from your deployment" Open
Set up recommendations SILO_RECOMMENDATIONS_* variables under "Configure the model"; changing the model when the variables set it Open
Server configuration and dependencies Link to the renamed page; SILO_RECOMMENDATIONS_* row in the variable table Open

What changed on each page

Configure Silo from a deployment document

  • Title is now "Configure Silo from a deployment document". The slug stays docs/provision-plugins, so existing links keep working.
  • "Prepare the declaration": SILO_CONFIG_FILE (YAML or JSON file) and SILO_CONFIG (inline JSON), with "The older names, SILO_PLUGINS_FILE and SILO_PLUGINS, still work and read the same document. Set only one of the four: if two are set, Silo doesn't start." Both plugins and ai_providers are optional, and a section left out leaves those plugins or providers as they are. The OIDC walkthrough gets its own subheading.
  • New section "Connect AI providers": an example with OpenAI and a custom endpoint, with the schema comment, the id rule (1 to 64 lowercase letters, digits, and hyphens, starting with a letter or digit), type values and defaults, api_key only as fromFile or fromEnv (with the four types that need one), capabilities required for custom and refused for the rest, the name-clash stop and its two fixes, replacing a stored provider with the same id and type (a type change stops startup), an example startup error, a pointer to the read-only view on AI Services, and the last-to-start-wins rule. Plugin secrets and AI keys share one 1 MiB secret limit.
  • Compose, Kubernetes, and NixOS examples use SILO_CONFIG_FILE and a deployment.yaml or deployment.json file, and show the AI key's secret next to the OIDC one. Kubernetes says to leave out the Secrets, mounts, and volumes a document doesn't reference; NixOS gets the key's source path, its LoadCredential line, and an ai_providers snippet.
  • "Change settings or hand control back to an administrator": plugins: {} releases every plugin, and leaving the section out releases nothing. New bullet for ai_providers, with the same rules for ai_providers: {} and for leaving the section out, and that removing the document releases nothing; a released provider can be removed once no job uses it.
  • Frontmatter keywords drop the variable names the page now uses in its text and add "config as code" and "infrastructure as code". Questions add "Can I add an AI provider without the admin pages?"

Worth checking: I kept the heading "Prepare the declaration" so its anchor doesn't change.

Configure AI services

  • New section after "Connect speech-to-text" that links to the deployment document and to the model steps above it. Manage on a declared provider shows it read-only with Set by SILO_CONFIG_FILE in the server’s environment., without Save or Remove, and Test still works. It can still be chosen for Text model or Speech-to-text. To change it or hand it back to administrators, edit the document and restart.

Set up recommendations

  • "Configure the model": declare the provider in the document first, then SILO_RECOMMENDATIONS_ENABLED, SILO_RECOMMENDATIONS_PROVIDER (the id of a provider the document declares; admin-added providers' ids aren't shown) and SILO_RECOMMENDATIONS_MODEL set Enable Recommendations, Embedding provider, and Model, which then show read-only. Check Connection still works, and the step says to confirm it reports the model's dimensions before running Embeddings. A second paragraph: they apply on the start that reads them, the startup error for a provider that isn't connected, and the last-to-start-wins rule.
  • "Change the embedding model": change the variables instead when they set the provider and model, including when switching only the provider.
  • The variables paragraph links to "Server settings from the environment" for how to set them.

Server configuration and dependencies

  • The link to the deployment document uses its new title and mentions AI providers.
  • The variable table has a row for SILO_RECOMMENDATIONS_ENABLED, SILO_RECOMMENDATIONS_PROVIDER, and SILO_RECOMMENDATIONS_MODEL.

Left out on purpose

Evidence

Source reviewed, not tested on a live server or device:
silo-server 6a13f8acd (main, with Silo-Server/silo-server#4668 and #4665 merged). Docs branch merged with siloserver.org main at 5d9f7a0.

The server PR's own evidence shows the read-only provider panel and Recommendations fields on a running server with a declared provider; these pages weren't checked against one separately.

bun run test:docs: tests 8, pass 8, fail 0
bun run build: Complete!
Search: 159 of 169 queries find an expected page in the top 3.
git diff --check: clean

Evidence: https://evidence.siloserver.org/r/siloserver-org/deployment-ai-providers/

Follow-ups

  • The variable table on Server configuration and dependencies doesn't list the other variables silo-server#4665 added, such as SILO_BACKUP_TIME, SILO_DISCORD_CLIENT_ID, and SILO_MDBLIST_API_KEY. That's a separate docs change.

Risks

None identified. Documentation only.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code, GitHub CLI, Bun
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; a maintainer reviews it before merge
  • Adversarial review: Sol (gpt-6.2-sol), Opus (claude-opus-5-5), Gemini (gemini-4-neon), medium effort, 2 rounds, 38 of 45 findings applied

🤖 Generated with Claude Code

Note

Document AI provider and recommendation configuration via the deployment document

  • Rewrites provision-plugins.md around a unified deployment document that declares both plugins and AI providers, with examples for Compose, Kubernetes, NixOS, and schema validation
  • Adds a section to ai-services.md on declaring providers in the deployment document; the provider management view is now read-only except for testing
  • Documents recommendation environment variables in configuration.md and recommendation setup, startup validation, and provider-availability errors in recommendations.md
  • Behavioral Change: providers are now configured by editing the deployment document and restarting Silo; administrators lose direct edit access in the management view

Macroscope summarized 2541002.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 89 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ebbcf8fb-129d-4b48-9631-86afa119b67b
Commits

Reviewing files that changed from the base of the PR and between 5d9f7a0 and 2541002.

Files selected for processing: 4

  • src/content/docs/docs/running-a-server/ai-services.md
  • src/content/docs/docs/running-a-server/configuration.md
  • src/content/docs/docs/running-a-server/provision-plugins.md
  • src/content/docs/docs/running-a-server/recommendations.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Nov 20, 2026
@silo-kody

silo-kody Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@Quick104

Copy link
Copy Markdown
Contributor Author

Draft until Silo-Server/silo-server#4668 and Silo-Server/silo-server#4665, which it's stacked on, are merged into main. The docs describe that change, and its labels or defaults may still change in review.

@silo-triage silo-triage Bot added documentation Improvements or additions to documentation triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 20, 2026
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Preview removed after this pull request was closed. Its address now redirects to siloserver.org, though some visitors may still see the old preview for a while.

- A declaration keeps a connected provider's type, replaces it whole,
  and shares the document's secret limit with plugin secrets.
- State the id rule and that custom providers need capabilities, and
  use a generic host in the custom example.
- Show the AI key's secret in the Compose, Kubernetes and NixOS steps.
- Keep the read-only provider description on AI Services, say that
  removing the document releases nothing, and how to remove a released
  provider.
- Split the recommendations variables paragraph, say where to set them
  and which provider ids work, and cover switching a provider the
  environment sets.
- Keywords: drop words the page already uses.
@silo-kody

silo-kody Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@silo-kody

silo-kody Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

… page

Rename the link to the page's new title and list the SILO_RECOMMENDATIONS_* variables, now that the table from #440 is on main.
@silo-kody

silo-kody Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@@ -41,7 +41,7 @@ Set these variables on each API server to configure Silo from its environment in

With Compose, add them to `.env` and recreate the container with `docker compose up -d`. The repository's Compose files pass `.env` to the `silo` service with `env_file`. In a Compose file of your own, add `env_file: .env` to the `silo` service or list each variable under `environment`, such as `SILO_PUBLIC_URL: ${SILO_PUBLIC_URL}`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

kody code-review Bug high

Compose interpolates dollar signs in documented secret values

An SMTP password or S3 secret containing $ can be silently changed in .env, breaking authentication. Tell operators to single-quote values containing $, as the page already advises for POSTGRES_PASSWORD.

Prompt for LLM
File src/content/docs/docs/running-a-server/configuration.md, line 42:

Compose interpolates dollar signs in documented secret values

Unquoted values containing `$` are interpolated by Compose, so putting an SMTP password or S3 secret in `.env` as instructed can silently change the credential and break authentication. Tell operators to single-quote environment values containing `$`, as the page already advises for `POSTGRES_PASSWORD`.

Suggested code:

With Compose, add them to `.env` and recreate the container with `docker compose up -d`. Single-quote values containing `$`, including passwords and secret keys, to prevent Compose from interpolating them.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Right about Compose: an unquoted $ in .env is read as a variable, and the page gives the single-quote advice only for POSTGRES_PASSWORD. This line came from #440 and is already on main; this PR does not change it, so it goes to a separate docs change.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Agreed. The Compose warning is valid, but the affected guidance predates this PR, so it belongs in a separate documentation change. That change could advise single-quoting any .env value containing $, including passwords and secret keys.

Would you like me to create an issue to track it?

@silo-kody

silo-kody Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@Quick104
Quick104 marked this pull request as ready for review November 23, 2026 03:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T03:05:05.192765Z dea0672 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-23T03:05:37.190322Z dea0672 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

zZebrahz added a commit that referenced this pull request Nov 25, 2026
Resolve ai-services.md: keep main's Connect speech-to-text (the speech Base URL paragraph is gone on main) and put the spoken-language paragraph after step 4, before the ChatGPT plan note, so PR #446's section after that note still merges cleanly.
@silo-kody

silo-kody Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Scope polling setup steps to installable source capabilities
  • Preserve retired documentation URLs with tested redirects

@zZebrahz
zZebrahz merged commit 1dd7a7a into main Nov 26, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 2541002f Deployed Nov 26, 2026 by zZebrahz via teardown #245
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/M 50–199 added + deleted lines (all files); change volume, not priority. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: AI providers and recommendations from the deployment document

2 participants