Closed Stebalien closed 7 months ago
Motivation: When implementing https://github.com/s-kostyaev/ellama/pull/31, I didn't want to repeat the same code three times.
Warning: I believe this is correct, bug I haven't thoroughly tested it.
@Stebalien thank you. Improve ellama-stream
docstring and I will merge it.
@Stebalien please fix CI warnings
@Stebalien there are some more warnings. And also, change done callback to be called with generated text as an argument - it will be useful with other use cases too.
Done and done.
@Stebalien Thank you
ellama-stream
,ellama-stream-filter
, andellama-chat
were mostly identical so I merged their implementations as much as possible.ellama-stream
now supports::filter
keyword argument for filtering responses.:session
keyword argument specifying whether or not the prompt should extend an ongoing session or be a one-off request.:on-error
keyword argument for specifying an "error" callback.:on-done
keyword argument for specifying a "done" callback.Built on #28.