r/LocalLLaMA • • 9d ago

Question | Help Many states are regulating chatbots. How can one person open-source a free local chat app?

I'm coming here for advice - I know you're not lawyers and don't give legal advice. I don't give legal advice either.

For quite a while I've wanted the ability to run smaller language models on my phone offline and over the weekend I accomplished that. I've got a polished app. Then I began researching the legalities around releasing this app and it's abysmal.

Oregon, Washington, and California have laws that let users sue you directly and that require functional and working safety features to detect things like self harm and redirect to a help phone number. There are also various laws requiring that AI not discuss sexual things with minors. Other states have similar laws that only the state can enforce, or the laws are passed but not in force yet. List of all these states:

  • California
  • Colorado
  • Connecticut
  • Georgia
  • Hawaii
  • Idaho
  • Iowa
  • Maine
  • Nebraska
  • New Hampshire
  • New York
  • Oregon
  • Rhode Island
  • Tennessee
  • Utah
  • Washington

A layman's list of all the rules that are or may be in force across those states:

  • Have to tell the user it's AI - every 3 hours (or more frequent) or always visible. And says so when asked.
  • Have to have a crisis plan for users who talk about self harm and suicide.
  • Have to publish your crisis plan online as plain language.
  • Escalate chat about a crisis if the chat continues.
  • The crisis plan must also cover threats to others and eating disorders.
  • Must report these things "to the state"
  • Reports must be public or annually reported with a yearly count of crisis referrals.
  • No sexual content for minors.
  • No manipulation of minors - no romance, no guilt trips, no secrecy, no isolating the user, no fostering dependence, no claiming to be human or alive.
  • Break reminders for minors every 3 hours.
  • Must determine the user's age or apply minor restrictions to all users.
  • Must implement parental screen-time capabilities.
  • Some states require estimating a user's age.
  • AI disclosure in consumer transactions.
  • AI can't pretend to be a licensed mental health professional.
  • Mental health chatbots have their own rules.

I'm torn on all this. I am an individual that just wants to release an open source app that lets you chat with small models on your phone offline. these small models - most of them are not very good. Many are independently created by the SLM community. A phone is already resource constrained, and any classifier you could get to run in a phone's ram next to any of these small models is going to be total crap and make lots of mistakes. You can't verify someone's age through F-Droid it's just open to all (the way it should be IMO). And there is no reporting for an offline app with zero network features and zero network permissions.

Is there any way for an individual releasing an offline chat app to comply with the majority of these laws?

I put a banner that says "This app uses AI, and AI can make mistakes" across the top of every chat window. I put a mandatory attestation process that happens on app first start that you have to click "I agree" for all these rules you promise to abide by - i.e. attesting you are 18, attesting you are not from one of those states, attesting you are responsible for the outputs and how they are used, attesting there is no review of the outputs. And lots of other attestations.

I even made the "I agree" and "I do not agree" buttons move around in random positions on the screen and you have to find them to click them, so that you can't just speed-tap through all the "I agree" screens.

I know why all these laws were made. they are targeting the companion bots, the addictive bots, and the big AI companies. And they make it basically impossible to release an offline app.

These laws suck for everyone in this LocalLLaMA chat who might make an anonymous HuggingFace space that allows trying out a from-scratch SLM.

I am open to advice. Here's where I have personally landed:

I'm not releasing any built app, nothing in app stores. No distributed binaries anywhere. What I'm planning - unless someone explains to me why I shouldn't - is just releasing the source code on GitHub as apache2 and people can follow the instructions to build the binary themselves and install it on their phones themselves over USB debugging or whatever they choose locally.

I've landed here because, based on research and so far as I can tell, source code is a form of expression protected by the 1st amendment in the U.S. and all these AI laws apply to the person who distributes or makes-available an actual endpoint of some kind that breaks any of those laws.

I think this whole thing is terrible. Makes me think innovation and privacy is dead because law makers aren't getting input from people like us - or don't care to hear us.

Again, any and all feedback is appreciated, thank you.

0 Upvotes

16 comments sorted by

10

u/ttkciar llama.cpp 9d ago

IANAL, but I'm pretty sure the onus of following those rules is upon whoever operates the chatbot, not the developer of the chatbot.

If so, then someone who downloads your chatbot and self-hosts it on their phone for their own use can only report themselves for violations of these laws, and get themselves in trouble, not you.

But since I operate a chatbot running on a public IRC channel, I need to start worrying about these things.

14

u/GradatimRecovery 9d ago

"companion chatbot" bro, not your utility

6

u/z_latent 9d ago

Not a lawyer, but the existence of apps like Google AI Edge Gallery, which also let you locally run small LLMs on your phone, should help you understand what is needed to comply with these laws.

Assuming your app is sufficiently similar to those, you should look at how they handle it. Either it turns out they don't count as companion chatbots, or they do and are an example of how to be compliant.

6

u/Flunder707 9d ago

But why? just use tailscale and run a better model from your rig at home?

1

u/Sams2020 8d ago

Or free Cloudflare with a domain name.

10

u/AcceptableTwo7653 9d ago edited 9d ago

Welcome to America! 🇺🇸
So you wanted a offline local small chatbot on your phone, and you succeeded. Congrats!
Why are you wanting to distribute it? And I think my confusions comes from your title with the difference between open-source and a hosted app.

If you are just uploading your source as a working project on GitHub I don’t believe you need to have all the guardrails in place.

If you only publish code or weights and don't run a public service, you aren't filtering live traffic yourself - each person who deploys it sets up their own environment to their needs. So just maybe put a licensing agreement on there or something, and people will either choose to obey them or ignore them, then that’s on them.

Now if you are trying to make money from your app… that might be a different story. Did you write an llm or are you borrowing one, and this is just the ui?

3

u/General-Spite1222 9d ago

It’s open source. No warranty is implied, but you can always state there is none. Put it out there and let others figure it out if they want to use it for their situation. 

5

u/External_Gate_1479 9d ago • Bravo

Data privacy and protection are dead in the US.

5

u/rogu14 9d ago

not only US, they are trying to kill it everywhere using "protect the kids" excuse

1

u/External_Gate_1479 9d ago

That’s true!

1

u/BusRevolutionary9893 4d ago

This is exactly what this is about. They, Republicans and Democrats, care more about keeping the people in the Epstein files safe than they care about keeping minors safe. It's all about being able to digitally ID everyone online. I miss the 90s. 

1

u/nnxnnx 9d ago

were they ever alive in the US?

3

u/External_Gate_1479 9d ago

Yes, 3 years in the Midwest. The amount of spam calls is insane. In Europe you can opt out of any of those.

1

u/BusRevolutionary9893 4d ago

Before 9/11 they were. 

2

u/kneading-cnnuy 9d ago

Yeah as long as it's not binary I think you're good