ahyatt / llm

A package abstracting llm capabilities for emacs.
GNU General Public License v3.0
142 stars 19 forks source link

Plz #39

Closed r0man closed 3 months ago

r0man commented 3 months ago

Hi @ahyatt,

here's another PR with some small bug fixes and improvements.

r0man commented 3 months ago

Btw, I now created seperate repos for my code. I update the files in the llm library with this script.

#!/usr/bin/env bash
set -e
set -o pipefail
wget -q -O plz.el https://raw.githubusercontent.com/r0man/plz.el/plz-stream/plz.el
wget -q -O plz-media-type.el https://raw.githubusercontent.com/r0man/plz-media-type/main/plz-media-type.el
wget -q -O plz-event-source.el https://raw.githubusercontent.com/r0man/plz-event-source/main/plz-event-source.el
ahyatt commented 3 months ago

Thanks! For the timeout, I've seen some instances where ollama will just keep on generating forever, so it's important to have some timeout at least for ollama. The ones actually run server-side presumably would never do that.