Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from lobehub:main #120

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/self-hosting/environment-variables/s3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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`

</Callout>

### `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.
```
13 changes: 13 additions & 0 deletions docs/self-hosting/environment-variables/s3.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,16 @@ LobeChat 支持多模态的 AI 会话,包括将图片、文件等非结构化
- virtual-host : `mybucket.s3.example.net/config.env`

</Callout>

### `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.
```
Loading