文件历史

提交图

14 次代码提交

作者 SHA1 备注 提交日期
Simon Willison 563a4837f2 Annotations prototype, refs #716 2025-03-18 19:05:54 -07:00
Simon Willison 62c90dd472 llm prompt --schema X option and model.prompt(..., schema=) parameter (#777)
Refs #776

* Implemented new llm prompt --schema and model.prompt(schema=)
* Log schema to responses.schema_id and schemas table
* Include schema in llm logs Markdown output
* Test for schema=pydantic_model
* Initial --schema CLI documentation
* Python docs for schema=
* Advanced plugin docs on schemas
2025-02-26 16:58:28 -08:00
Simon Willison 571f4b2a4d Fix for UTC warnings
Closes #672
2024-12-12 14:57:23 -08:00
Simon Willison cfb10f4afd Log input tokens, output tokens and token details (#642)
* Store input_tokens, output_tokens, token_details on Response, closes #610
* llm prompt -u/--usage option
* llm logs -u/--usage option
* Docs on tracking token usage in plugins
* OpenAI default plugin logs usage
2024-11-19 20:21:59 -08:00
Simon Willison c0fe719df6 Store prompt attachments in attachments and prompt_attachments tables
Refs https://github.com/simonw/llm/issues/587#issuecomment-2439791231
2024-10-28 15:41:34 -07:00
Simon Willison c4dbb62e68 Fix for broken migrations on sqlite-utils 3.35, refs #162 2023-08-19 13:09:41 -07:00
Simon Willison 75e40e7077 Enable FTS indexes on responses prompt and response columns, refs #109 2023-07-15 16:03:35 -07:00
Simon Willison 88d839fa85 Create conversations and responses tables and write to them, refs #91 2023-07-11 07:21:22 -07:00
Simon Willison 307af2474c Fix column order in logs 2023-07-03 07:29:58 -07:00
Simon Willison 345ad0d2dc Implemented new logs database schema 2023-07-03 07:27:47 -07:00
Simon Willison 4a9f7f4908 Lint using Ruff, refs #78 2023-07-02 12:41:40 -07:00
Simon Willison 3ed86e403d Added mypy, plus some fixes to make it happy - refs #77 2023-07-02 12:36:22 -07:00
Simon Willison 8308fe5cbf Store debug info, closes #34 2023-06-16 08:51:56 +01:00
Simon Willison 44bcc8f63c New table schema, with new migrations system - closes #26 2023-06-15 19:33:31 +01:00