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