Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
causal
· 1y ago · 0 comments
Do you have a package for calling LLM services we can use? This service is neat, but I don't need another LLM IDE built in Elixir but I COULD really use a way to call LLMs from Elixir.
Comments
[–]
chrismccord
1y ago
Req.post to /chat/completions, streaming the tokens through a parser and doing regular elixir messages. It's really not more complicated than that :)
[–]
throwawaymaths
1y ago
even less complicated, just set stream: false in your json :)