Open simonw opened 1 year ago
The code that generates Markdown currently lives in the cli.py
llm logs list
command:
https://github.com/simonw/llm/blob/4d18da4e1149b69b44a0480729b4e2ef24bc756a/llm/cli.py#L740-L763
I could:
Model
such that other models can subclass itModel
that appends extra Markdown to that log, defaulting to returning nothing but such that other models can subclass it.I slightly prefer 2.
When I use this to implement logprobs
I need to remember that streaming and non-streaming completion models end up storing them in different shapes in the JSON DB log. https://github.com/simonw/llm/issues/284#issuecomment-1724834791
Originally posted by @simonw in https://github.com/simonw/llm/issues/284#issuecomment-1724782862