Skip to content

Conversation

CosineP
Copy link

@CosineP CosineP commented Apr 27, 2025

This PR allows you to query an LLM (currently hardcoded as OpenAI's gpt-4.1-nano, which is super cheap) to determine behavior where a blocklist doesn't explicitly allow or disallow a URL. This allows easily specifying rules such as "Anything NOT related to my work as a researcher in CS" should be blocked for 60 seconds.

More development would be useful here, such as supporting automatically giving in-context examples, overriding the LLMs decisions, and changing the model and API used. But this PR is mostly just gauging interest, partly because I don't want to bother with signing nonsense to get this running on my Firefox.

@RomanHauksson
Copy link

RomanHauksson commented Oct 16, 2025

Really cool feature! Though I'd personally want to use a local or self-hosted model instead of sending my entire browsing history to OpenAI. Here's some project I quickly found that facilitates in-browser LLM inference: https://webllm.mlc.ai/, but not sure if it's the best solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants