fix(ocis_full): make ai-* extension model configurable via .env

The model name for the ai-* web extensions was hardcoded in apps.yaml.
Add AI_LLM_MODEL_DEFAULT and AI_LLM_MODEL_VISION env vars, pass them
into the ocis container's environment, and reference them from
apps.yaml so the model can be overridden from .env.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Lukas HirtandClaude Sonnet 5 committed 2026-07-27 10:54:02 +02:00
1 parent 80bb96b241
commit 0051befae9
3 files changed
+23 -13

No files matched your search

+8 -1
View File
@@ -201,7 +201,14 @@ COMPANION_ONEDRIVE_SECRET=
AI_LLM_ENDPOINT=
# API key for the LLM backend, if required. Empty by default.
AI_LLM_API_KEY=
# Model name to use/override for all LLM calls. Empty uses the client's requested model.
# Default model name requested by the ai-* web extensions (see config/ocis/apps.yaml).
AI_LLM_MODEL_DEFAULT=
# Model name requested by the vision-capable ai-image-alt-text-sidebar extension.
AI_LLM_MODEL_VISION=
# Model name to force for ALL LLM calls, overriding whatever model the client
# requested above (e.g. to pin everything to a single locally pulled Ollama
# model). Empty uses the client's requested model (AI_LLM_MODEL_DEFAULT /
# AI_LLM_MODEL_VISION).
AI_LLM_MODEL=
## oCIS Workflows ##
@@ -29,64 +29,64 @@ chat-with-file:
config:
llm:
endpoint: 'https://${OCIS_DOMAIN|ocis.owncloud.test}/ai-llm-proxy/v1'
model: 'llama3.2'
model: '${AI_LLM_MODEL_DEFAULT|llama3.2}'
version-changelog:
config:
llm:
endpoint: 'https://${OCIS_DOMAIN|ocis.owncloud.test}/ai-llm-proxy/v1'
model: 'llama3.2'
model: '${AI_LLM_MODEL_DEFAULT|llama3.2}'
ai-doc-summary:
config:
llm:
endpoint: 'https://${OCIS_DOMAIN|ocis.owncloud.test}/ai-llm-proxy/v1'
model: 'llama3.2'
model: '${AI_LLM_MODEL_DEFAULT|llama3.2}'
ai-image-alt-text-sidebar:
config:
llm:
endpoint: 'https://${OCIS_DOMAIN|ocis.owncloud.test}/ai-llm-proxy/v1'
model: 'llava:7b'
model: '${AI_LLM_MODEL_VISION|llava:7b}'
ai-data-insights-sidebar:
config:
llm:
endpoint: 'https://${OCIS_DOMAIN|ocis.owncloud.test}/ai-llm-proxy/v1'
model: 'llama3.2'
model: '${AI_LLM_MODEL_DEFAULT|llama3.2}'
ai-sensitive-data-scanner:
config:
llm:
endpoint: 'https://${OCIS_DOMAIN|ocis.owncloud.test}/ai-llm-proxy/v1'
model: 'llama3.2'
model: '${AI_LLM_MODEL_DEFAULT|llama3.2}'
ai-folder-brief-sidebar:
config:
llm:
endpoint: 'https://${OCIS_DOMAIN|ocis.owncloud.test}/ai-llm-proxy/v1'
model: 'llama3.2'
model: '${AI_LLM_MODEL_DEFAULT|llama3.2}'
# The following extensions have no published docker image and build from git,
# see web_extensions/<name>.yml for details.
ai-folder-readme-generator:
config:
llm:
endpoint: 'https://${OCIS_DOMAIN|ocis.owncloud.test}/ai-llm-proxy/v1'
model: 'llama3.2'
model: '${AI_LLM_MODEL_DEFAULT|llama3.2}'
ai-multi-doc-synthesizer:
config:
llm:
endpoint: 'https://${OCIS_DOMAIN|ocis.owncloud.test}/ai-llm-proxy/v1'
model: 'llama3.2'
model: '${AI_LLM_MODEL_DEFAULT|llama3.2}'
ai-quick-draft-creator:
config:
llm:
endpoint: 'https://${OCIS_DOMAIN|ocis.owncloud.test}/ai-llm-proxy/v1'
model: 'llama3.2'
model: '${AI_LLM_MODEL_DEFAULT|llama3.2}'
ai-smart-collections-nav:
config:
llm:
endpoint: 'https://${OCIS_DOMAIN|ocis.owncloud.test}/ai-llm-proxy/v1'
model: 'llama3.2'
model: '${AI_LLM_MODEL_DEFAULT|llama3.2}'
ai-smart-file-tagger-qa:
config:
llm:
endpoint: 'https://${OCIS_DOMAIN|ocis.owncloud.test}/ai-llm-proxy/v1'
model: 'llama3.2'
model: '${AI_LLM_MODEL_DEFAULT|llama3.2}'
# oCIS Workflows (owncloud/ocis-workflows), see workflows.yml.
workflows:
+3
View File
@@ -51,6 +51,9 @@ services:
COLLABORA_DOMAIN: ${COLLABORA_DOMAIN:-collabora.owncloud.test}
ONLYOFFICE_DOMAIN: ${ONLYOFFICE_DOMAIN:-onlyoffice.owncloud.test}
COMPANION_DOMAIN: ${COMPANION_DOMAIN:-companion.owncloud.test}
# default model names requested by the ai-* web extensions, see config/ocis/apps.yaml
AI_LLM_MODEL_DEFAULT: ${AI_LLM_MODEL_DEFAULT:-llama3.2}
AI_LLM_MODEL_VISION: ${AI_LLM_MODEL_VISION:-llava:7b}
# enable to allow using the banned passwords list
OCIS_PASSWORD_POLICY_BANNED_PASSWORDS_LIST: banned-password-list.txt
volumes: