anse icon indicating copy to clipboard operation
anse copied to clipboard

Add http optional enable for API request

Open lucasjinreal opened this issue 2 years ago • 2 comments
trafficstars

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

  • [ ] I am willing to submit a pull request for this feature.

lucasjinreal avatar Jun 25 '23 08:06 lucasjinreal

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.

ddiu8081 avatar Jul 05 '23 04:07 ddiu8081

@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?

lucasjinreal avatar Jul 05 '23 04:07 lucasjinreal