mirror of
https://github.com/Yanyutin753/ChatGPT-Next-Web-LangChain-Gpt-4-All.git
synced 2025-10-15 15:41:23 +00:00
新增环境变量base64
This commit is contained in:
@@ -107,7 +107,7 @@ export class ChatGPTApi implements LLMApi {
|
|||||||
});
|
});
|
||||||
if (v.image_url) {
|
if (v.image_url) {
|
||||||
let image_url_data = "";
|
let image_url_data = "";
|
||||||
if (process.env.NEXT_PUBLIC_ENABLE_BASE64 == '1') {
|
if (process.env.NEXT_PUBLIC_ENABLE_BASE64) {
|
||||||
var base64Data = await getImageBase64Data(v.image_url);
|
var base64Data = await getImageBase64Data(v.image_url);
|
||||||
interface MIMEMap {
|
interface MIMEMap {
|
||||||
[key: string]: string;
|
[key: string]: string;
|
||||||
|
Reference in New Issue
Block a user