From e52120623ba8a177b7179aa76a8cae9d1397b67e Mon Sep 17 00:00:00 2001 From: Caijinglong Date: Thu, 12 Dec 2024 08:41:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20Add=20`LLM=5FVISION=5FIM?= =?UTF-8?q?AGE=5FUSE=5FBASE64`=20environment=20variable=20for=20base64=20i?= =?UTF-8?q?mage=20uploads=20in=20English=20and=20Chinese=20documentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revert "📝 docs: Add `LLM_VISION_IMAGE_USE_BASE64` environment variable for base64 image uploads in English and Chinese documentation" This reverts commit d90ff3fb68f0f6df09f171e6489551333b78bffa. --- .../environment-variables/basic.mdx | 17 ----------------- .../environment-variables/basic.zh-CN.mdx | 15 --------------- docs/self-hosting/environment-variables/s3.mdx | 15 +++++++++++++++ .../environment-variables/s3.zh-CN.mdx | 13 +++++++++++++ 4 files changed, 28 insertions(+), 32 deletions(-) diff --git a/docs/self-hosting/environment-variables/basic.mdx b/docs/self-hosting/environment-variables/basic.mdx index 1ec50e7dcd0f3..bfdccfa5e103c 100644 --- a/docs/self-hosting/environment-variables/basic.mdx +++ b/docs/self-hosting/environment-variables/basic.mdx @@ -143,20 +143,3 @@ The above example sets the `SERPAPI_API_KEY` of the `search-engine` plugin to `x - Type: Optional - Description: Index address of the LobeChat assistant market. If you have deployed the assistant market service on your own, you can use this variable to override the default market address. - Default: `https://chat-agents.lobehub.com` - -## Upload image - -### `LLM_VISION_IMAGE_USE_BASE64` - -- Type: Optional -- Description: Set to `1` to use base64 encoding for image upload. -- Default: undefined -- Example: `1` - -When set to `1`, LobeChat will convert images to base64 encoding before -uploading them to the LLM model. When encountering the following error, -please consider configuring this environment variable to `1`: - -```log -Route: [xai] ProviderBizError: Fetching images over plain http:// is not supported. -``` diff --git a/docs/self-hosting/environment-variables/basic.zh-CN.mdx b/docs/self-hosting/environment-variables/basic.zh-CN.mdx index 04da4e0c7799a..59b5b94ccc2ff 100644 --- a/docs/self-hosting/environment-variables/basic.zh-CN.mdx +++ b/docs/self-hosting/environment-variables/basic.zh-CN.mdx @@ -138,18 +138,3 @@ LobeChat 在部署时提供了一些额外的配置项,你可以使用环境 - 类型:可选 - 描述:LobeChat 助手市场的索引地址,如果你自行部署了助手市场的服务,可以使用该变量来覆盖默认的市场地址 - 默认值:`https://chat-agents.lobehub.com` - -## 上传图片 - -### `LLM_VISION_IMAGE_USE_BASE64` - -- 类型:可选 -- 描述:设置为 1 则使用 base64 编码上传图片 -- 默认值:undefined -- 示例:`1` - -当设置为 `1` 时,LobeChat 会将图片转换为 base64 编码后上传到 LLM 模型中,当遇到如下错误时请考虑配置该环境变量为 1 - -```log -Route: [xai] ProviderBizError: Fetching images over plain http:// is not supported. -``` diff --git a/docs/self-hosting/environment-variables/s3.mdx b/docs/self-hosting/environment-variables/s3.mdx index 91176b0d6522c..a5bce868f269f 100644 --- a/docs/self-hosting/environment-variables/s3.mdx +++ b/docs/self-hosting/environment-variables/s3.mdx @@ -81,3 +81,18 @@ Assuming the S3 service provider's domain is s3.example.net, the bucket is mybuc - virtual-host: `mybucket.s3.example.net/config.env` + +### `LLM_VISION_IMAGE_USE_BASE64` + +- Type: Optional +- Description: Set to `1` to use base64 encoding for image upload. +- Default: undefined +- Example: `1` + +When set to `1`, LobeChat will convert images to base64 encoding before +uploading them to the LLM model. When encountering the following error, +please consider configuring this environment variable to `1`: + +```log +Route: [xai] ProviderBizError: Fetching images over plain http:// is not supported. +``` diff --git a/docs/self-hosting/environment-variables/s3.zh-CN.mdx b/docs/self-hosting/environment-variables/s3.zh-CN.mdx index ed891a596b399..711842d48f6eb 100644 --- a/docs/self-hosting/environment-variables/s3.zh-CN.mdx +++ b/docs/self-hosting/environment-variables/s3.zh-CN.mdx @@ -80,3 +80,16 @@ LobeChat 支持多模态的 AI 会话,包括将图片、文件等非结构化 - virtual-host : `mybucket.s3.example.net/config.env` + +### `LLM_VISION_IMAGE_USE_BASE64` + +- 类型:可选 +- 描述:设置为 1 则使用 base64 编码上传图片 +- 默认值:undefined +- 示例:`1` + +当设置为 `1` 时,LobeChat 会将图片转换为 base64 编码后上传到 LLM 模型中,当遇到如下错误时请考虑配置该环境变量为 1 + +```log +Route: [xai] ProviderBizError: Fetching images over plain http:// is not supported. +```