dliden,

Has anyone here worked much with generators in ?

I am looking for a good solution for streaming outputs in my ollama-elisp-sdk project. I think there's a good angle using generators to make a workflow fairly similar to e.g. the OpenAI API. Not sure yet though.

holgerschurig,

@dliden For streaming you should probably do something based on the the COMINT mode.

That would give you a ollama repl.

dliden,

@holgerschurig Thanks! I'm not really going for a repl; there are a few different implementations out there already. I'm more just trying to write an elisp layer over the whole ollama API, so you can more easily use ollama via elisp.

I think the main issue I'm running into is how callbacks work in the url library. I don't yet see how to use url for streaming (and I don't technically have to, I could use curl) because the callback still isn't triggered until the full (streaming) response is complete.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • DreamBathrooms
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • InstantRegret
  • tacticalgear
  • anitta
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • JUstTest
  • lostlight
  • All magazines