From f8b6d0287dd606b3372f9c8e8484a3d0bf691789 Mon Sep 17 00:00:00 2001 From: hejl Date: Fri, 8 Nov 2024 16:32:55 +0800 Subject: [PATCH] add MULTIMODAL_SEND_VIDEO_FORMAT to docker's env --- docker/.env.example | 5 +++-- docker/docker-compose.yaml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/.env.example b/docker/.env.example index 9a178dc44c86dd..2dfb842a640b23 100644 --- a/docker/.env.example +++ b/docker/.env.example @@ -583,12 +583,13 @@ CODE_GENERATION_MAX_TOKENS=1024 # Multi-modal Configuration # ------------------------------ -# The format of the image sent when the multi-modal model is input, +# The format of the image/video sent when the multi-modal model is input, # the default is base64, optional url. # The delay of the call in url mode will be lower than that in base64 mode. # It is generally recommended to use the more compatible base64 mode. -# If configured as url, you need to configure FILES_URL as an externally accessible address so that the multi-modal model can access the image. +# If configured as url, you need to configure FILES_URL as an externally accessible address so that the multi-modal model can access the image/video. MULTIMODAL_SEND_IMAGE_FORMAT=base64 +MULTIMODAL_SEND_VIDEO_FORMAT=base64 # Upload image file size limit, default 10M. UPLOAD_IMAGE_FILE_SIZE_LIMIT=10 diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index a7cb8576fdd692..60b0b9f2573404 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -214,6 +214,7 @@ x-shared-env: &shared-api-worker-env PROMPT_GENERATION_MAX_TOKENS: ${PROMPT_GENERATION_MAX_TOKENS:-512} CODE_GENERATION_MAX_TOKENS: ${CODE_GENERATION_MAX_TOKENS:-1024} MULTIMODAL_SEND_IMAGE_FORMAT: ${MULTIMODAL_SEND_IMAGE_FORMAT:-base64} + MULTIMODAL_SEND_VIDEO_FORMAT: ${MULTIMODAL_SEND_VIDEO_FORMAT:-base64} UPLOAD_IMAGE_FILE_SIZE_LIMIT: ${UPLOAD_IMAGE_FILE_SIZE_LIMIT:-10} UPLOAD_VIDEO_FILE_SIZE_LIMIT: ${UPLOAD_VIDEO_FILE_SIZE_LIMIT:-100} UPLOAD_AUDIO_FILE_SIZE_LIMIT: ${UPLOAD_AUDIO_FILE_SIZE_LIMIT:-50}