mirror of
https://github.com/Yanyutin753/ChatGPT-Next-Web-LangChain-Gpt-4-All.git
synced 2025-10-15 07:31:39 +00:00
feat send base64 or url
This commit is contained in:
@@ -104,7 +104,7 @@ export class ChatGPTApi implements LLMApi {
|
||||
});
|
||||
if (v.image_url) {
|
||||
let image_url_data = "";
|
||||
if (process.env.NEXT_PUBLIC_ENABLE_BASE64) {
|
||||
if (options.config.updateTypes) {
|
||||
var base64Data = await getImageBase64Data(v.image_url);
|
||||
let mimeType: string | null;
|
||||
try {
|
||||
@@ -347,6 +347,7 @@ export class ChatGPTApi implements LLMApi {
|
||||
baseUrl: baseUrl,
|
||||
maxIterations: options.agentConfig.maxIterations,
|
||||
returnIntermediateSteps: options.agentConfig.returnIntermediateSteps,
|
||||
updateTypes: modelConfig.updateTypes,
|
||||
useTools: options.agentConfig.useTools,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user