Skip to content

Commit dce9476

Browse files
authored
chore(docs): add tips about image size for image prompting (#1034)
1 parent a623862 commit dce9476

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

apps/site/docs/en/api.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,3 +899,7 @@ await agent.aiAssert({
899899
],
900900
});
901901
```
902+
903+
**Notes on Image Size**
904+
905+
When prompting with images, it is necessary to pay attention to the requirements of the AI model provider regarding the size and dimensions of the images. Images that are too large (such as exceeding 10M) or too small (such as being less than 10 pixels) may cause errors when the model is invoked. The specific restrictions should be based on the documentation provided by the AI model provider you are using.

apps/site/docs/zh/api.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,3 +911,7 @@ await agent.aiAssert({
911911
],
912912
});
913913
```
914+
915+
**图片尺寸的注意事项**
916+
917+
在提示词中使用图片时,可能需要关注模型提供商对图片体积和尺寸的要求,过大(比如超过 10M)或过小(比如小于 10 像素)的图片都有可能导致模型调用时出现报错,具体的限制请以你所使用模型提供商的文档为准。

0 commit comments

Comments
 (0)