ChristopheZhao / ChaGPT-API-Call

Python calls ChatGPT API, multi-turn dialogue support
112 stars 38 forks source link

命令行可以拿到消息结果,可是页面上输入消息无返回值 #6

Open myheavyhead opened 1 year ago

myheavyhead commented 1 year ago

image

ChristopheZhao commented 1 year ago

@myheavyhead I have try just now,it works well in both chrome and edge browser except it is slower when generating longer response ,I will optimize it use stream result of api after few days later. can you try to lanch conversation interface on another browser or try again. image

myheavyhead commented 1 year ago

@ChristopheZhao sure, when i ask the gpt in safari, the result is as same as in chorme, like this.

image

In browser i will revice a answer, say 'Failed to load resource', like this

image
ChristopheZhao commented 1 year ago

Sorry for the late reply, I checked the questions and asked chatgpt, maybe you can refer to it:

The error "Failed to load resource" typically occurs when there's an issue in trying to load certain resources on a web page, such as CSS, JavaScript, images, etc. This could be due to a number of reasons, including:

1.Server Error: The server where the resource is located might be encountering an issue and is unable to respond correctly to the request. This could be due to server overload, or an error with the server software.

2.Network Error: If your network connection is unstable, it could also result in a failure to load resources.

3.Path Error: If the URL of the resource is incorrect, or if the resource has been moved or deleted, you will also see this error.

4.CORS Policy: If you're trying to load a resource from a different origin (e.g., different domain, port, or protocol) and that origin hasn't properly set a CORS (Cross-Origin Resource Sharing) policy to allow such requests, you might encounter this error.

5.Authentication or Permission Error: If the resource requires certain authentication or permissions to access, and you haven't provided the correct authentication or your account doesn't have sufficient permissions, you might see this error.