Skip to content

0.2a0

Pre-release
Pre-release

Choose a tag to compare

@simonw simonw released this 05 Dec 23:12
4019a33
  • New datasette llm command runs the LLM command-line tool inside Datasette's environment. This means datasette llm keys set openai works even when Datasette was installed with uv tool or pipx and the llm command is not on your path.
  • Each prompt() and chain() 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 a datasette_llm.outcome attribute. No prompt text, response text or actor details are recorded. Thanks, Alex Garcia. #8
  • New datasette_llm.token.usage OpenTelemetry 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_context hook's prompt= argument now falls back to the text of the final message when a caller passes its whole input as messages= with no prompt text, provided that message is from the user.
  • The prompt text argument to prompt() and chain() is now optional, so callers using messages= no longer need to pass None.