API-LLM-Hub: In-Browser LLM Integration for Static Websites
(amanpriyanshu.github.io)10 points by IEatPrompts 2 days ago | 11 comments
10 points by IEatPrompts 2 days ago | 11 comments
IEatPrompts 20 hours ago | root | parent |
Yup, it's another alternative to using the regular API. The issue was that a lot of the providers required you to build their libs and caused a lot of friction running on standalone vanilla JS. This aims to compile all those solutions and package it.
smusamashah a day ago | prev | next |
This is great! I made a thing that works with OpenAI all within browser. Thought if making it work with Anthropic etc was putting me off. Will just use this lib.
IEatPrompts 20 hours ago | root | parent |
Ya, had a lot of trouble figuring out Anthropic as well. They don't have examples for overcoming their CORS issue.
meiraleal a day ago | prev | next |
Hey! Don't understand what the other commenter has against your project but it is quite interesting!
IEatPrompts 20 hours ago | root | parent |
Thanks a lot!! Really appreciate the comment
cjtrowbridge a day ago | prev |
BS. Import doesn't work on static websites. This code is for ES6. This post is spam.
cjtrowbridge a day ago | root | parent | next |
Your GitHub link doesn't even work, and the js file being imported is just plagiarized from Google.
WhatsName a day ago | root | parent |
Can you elaborate on the plagiarism claims?
Please also explain, why import is not avaliable to static sites? To the contrary: https://caniuse.com/?search=es6 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
While this is not the most elaborate of projects, it might be useful to somebody.
Here is a quote from the hn guidelines:
> Be kind. Don't be snarky. Converse curiously; don't cross-examine.
meiraleal a day ago | root | parent | prev |
What are you talking about? Have you be living in a cave?
Edit: by his comments history, he is just a sad hopeless troll
taikon a day ago | next |
I might be missing something here, but from the demo it looks like the user has to enter their API keys for their LLM provider. Is this is the intended use case for this tool? If so, how is this better than making a regular API request?