FluidVoice icon indicating copy to clipboard operation
FluidVoice copied to clipboard

[✨ FEATURE] custom provider support http protocol

Open SeniorPlayer opened this issue 5 months ago • 8 comments

custom provider better support http protocol. In some case we use local llm api proxy like cliproxyapi/new-api which don't have a valid domain cert.

SeniorPlayer avatar Jul 01 '26 08:07 SeniorPlayer

do you get any error - did you give it a go? if there's more info - I can see what to do. THank you.

altic-dev avatar Jul 01 '26 09:07 altic-dev

do you get any error - did you give it a go? if there's more info - I can see what to do. THank you.

Image

SeniorPlayer avatar Jul 01 '26 12:07 SeniorPlayer

@SeniorPlayer If its a remote endpoint, can you setup tunneling and let us know if it works ? So that can you access it as localhost.

Not a fan of setting a repo wide NSAllowsArbitraryLoads permission as per #505

grohith327 avatar Jul 03 '26 05:07 grohith327

@SeniorPlayer If its a remote endpoint, can you setup tunneling and let us know if it works ? So that can you access it as localhost.

Not a fan of setting a repo wide NSAllowsArbitraryLoads permission as per #505

Actually, it's my docker network address, and a docker domain name.

Apple's ATS can exempt the domain for .local, but it cannot exempt domains for private IP addresses like 192.168.x.x and 172.16.x.x.

SeniorPlayer avatar Jul 03 '26 06:07 SeniorPlayer

If its running on docker please try adding a proxy container that can forward the connection to your docker service from local.

Please move this to discussion or drop a message in our discord. Closing this for now

grohith327 avatar Jul 03 '26 20:07 grohith327

If its running on docker please try adding a proxy container that can forward the connection to your docker service from local.

Please move this to discussion or drop a message in our discord. Closing this for now

The problem is it doesn't support http. I can make a proxy or use a .local domain, but what if the endpoint runs on private network in an organization.

Moreover, AFAIK, most AI agents like claude code/codex/cherry studio they all support HTTP endpoint.

Your issue is that you don't want a repo wide NSAllowsArbitraryLoads permission, which is an Apple mechanism issue and shouldn't be a reason to close this feature. Moreover, in this scenario, Disable NSAllowsArbitraryLoads is not appropriate, because the app connects to user-defined endpoints, not all official endpoints.

SeniorPlayer avatar Jul 05 '26 00:07 SeniorPlayer

@SeniorPlayer I hear you. If you can submit a PR to allow local network, I can re-open the issue and take a look at the PR.

grohith327 avatar Jul 05 '26 00:07 grohith327

Just opened a discussion - https://github.com/altic-dev/FluidVoice/discussions/525

In case anyone else is interested, they can pick it up too. Running low on bandwidth, sorry 😅

grohith327 avatar Jul 05 '26 00:07 grohith327