diff --git a/deployments/examples/ocis_full/.env b/deployments/examples/ocis_full/.env index 29c5bdf8d3e..cffb1fc761a 100644 --- a/deployments/examples/ocis_full/.env +++ b/deployments/examples/ocis_full/.env @@ -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 ## diff --git a/deployments/examples/ocis_full/config/ocis/apps.yaml b/deployments/examples/ocis_full/config/ocis/apps.yaml index 23e9ea5e165..14f8f2f8a1e 100644 --- a/deployments/examples/ocis_full/config/ocis/apps.yaml +++ b/deployments/examples/ocis_full/config/ocis/apps.yaml @@ -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/.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: diff --git a/deployments/examples/ocis_full/ocis.yml b/deployments/examples/ocis_full/ocis.yml index 8ef91e31172..a5cbcee6c9a 100644 --- a/deployments/examples/ocis_full/ocis.yml +++ b/deployments/examples/ocis_full/ocis.yml @@ -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: