anse-app / anse

Supercharged experience for multiple models such as ChatGPT, DALL-E and Stable Diffusion.
https://anse.app
MIT License
1.86k stars 434 forks source link

Add http optional enable for API request #72

Open lucasjinreal opened 1 year ago

lucasjinreal commented 1 year ago

Describe the feature

Am current test on my own chat models but with same openai API.

on terminal, the request is ok, the model runs on another PC both in a same LAN.

image

But anse app not able to get connected, obvious this is because of https cert invalid.

How to solve in such situation?

Additional context

No response

Participation

ddiu8081 commented 1 year ago

Are you requesting LAN(http) from anse.app(https)? If this, the request may not be sent properly due to security restrictions.

You can choose to run the anse instance locally, or add a reverse proxy for the LAN api.

lucasjinreal commented 1 year ago

@ddiu8081 I directly changed the anse source code run npm run dev, seems also can not request, but some other react app can do.

I am new in frontend, could u provide a suggestion on how does http can work?