Repository navigation
0.2a0
Pre-release
Pre-release
- New
datasette llmcommand runs the LLM command-line tool inside Datasette's environment. This meansdatasette llm keys set openaiworks even when Datasette was installed withuv toolorpipxand thellmcommand is not on your path. - Each
prompt()andchain()call now emits an OpenTelemetry span,datasette_llm.prompt, recording the purpose, model ID, whether an actor was present and, on failure, the exception class. Cancelled and abandoned calls are marked with adatasette_llm.outcomeattribute. No prompt text, response text or actor details are recorded. Thanks, Alex Garcia. #8 - New
datasette_llm.token.usageOpenTelemetry histogram records input and output tokens for each model response, broken down by purpose and model. Thanks, Alex Garcia. #9 llm.models()now lists installed models most recently registered first.- The
llm_prompt_contexthook'sprompt=argument now falls back to the text of the final message when a caller passes its whole input asmessages=with no prompt text, provided that message is from the user. - The prompt text argument to
prompt()andchain()is now optional, so callers usingmessages=no longer need to passNone.