4.8.14 test (#3160)

* perf: remove base64 check

* perf: update doc
This commit is contained in:
Archer
2024-11-14 18:33:43 +08:00
committed by GitHub
parent b6d650adfb
commit e8824987fa
5 changed files with 6 additions and 8 deletions

View File

@@ -109,7 +109,7 @@ export const loadRequestMessages = async ({
}
return Promise.all(
messages.map(async (item) => {
if (item.type === 'image_url' && process.env.MULTIPLE_DATA_TO_BASE64 === 'true') {
if (item.type === 'image_url') {
// Remove url origin
const imgUrl = (() => {
if (origin && item.image_url.url.startsWith(origin)) {