superagent-ai / superagent

🥷 Run AI-agents with an API
https://docs.superagent.sh
Other
5.12k stars 820 forks source link

Integrate web-llm as an LLM option #687

Open singerbj opened 7 months ago

singerbj commented 7 months ago

⚠️ Please check that this feature request hasn't been suggested before.

🔖 Feature description

It would be cool to be able to leverage web-llm as a free model option that runs locally via the webgpu API. It would also be good from a security perspective to allow people to run and train the model locally vs using a 3rd party provider. Honestly, I am not sure it's possible as I am not a data science expert.

📝 Additional Context

https://github.com/mlc-ai/web-llm

Acknowledgements

VJlaxmi commented 5 months ago

Hi @singerbj, this integration sounds very interesting! I'd be keen to help explore the feasibility and contribute to adding web-llm as an LLM option.

Here's my initial approach:

I'm familiar with web technologies and have some experience with language models. Let me know if this approach sounds reasonable, and I'm happy to collaborate!