mirror of
https://github.com/Yanyutin753/ChatGPT-Next-Web-LangChain-Gpt-4-All.git
synced 2025-10-14 15:11:28 +00:00
优化ip加端口模式
This commit is contained in:
@@ -193,7 +193,8 @@ export class ChatGPTApi implements LLMApi {
|
||||
image_url_data = `data:${mimeType};base64,${base64Data}`
|
||||
}
|
||||
else {
|
||||
var url = window.location.protocol + "//" + window.location.hostname;
|
||||
var port = window.location.port ? ':' + window.location.port : '';
|
||||
var url = window.location.protocol + "//" + window.location.hostname + port;
|
||||
image_url_data = encodeURI(`${url}${v.image_url}`)
|
||||
}
|
||||
message.content.push({
|
||||
|
Reference in New Issue
Block a user