Simon Willison

Results 2767 comments of Simon Willison

Yeah, my software is built around JSON schemas - I do have a Pydantic option but I turn those into JSON schema before passing them further down the stack. I...

```diff diff --git a/llm/default_plugins/openai_models.py b/llm/default_plugins/openai_models.py index 94c1ffc..2c10877 100644 --- a/llm/default_plugins/openai_models.py +++ b/llm/default_plugins/openai_models.py @@ -182,6 +182,30 @@ def register_models(register): supports_tools=True, ), ) + # GPT-5.1 + for model_id in ( +...

```bash uv run llm -m gpt-5.1 -t pelican-svg uv run llm -m gpt-5.1-chat-latest -t pelican-svg uv run llm -m gpt-5.1-codex -t pelican-svg uv run llm -m gpt-5.1-codex-mini -t pelican-svg ```...

Here's the GPT-5.1 pelican: And for `gpt-5.1-chat-latest`:

Tried this instead: ```bash uv run llm -m gpt-5.1 -t pelican-svg -o reasoning_effort high ``` https://gist.github.com/simonw/fd120c35d8d34512c6f15d8d8e5192ec

Just spotted this in https://openai.com/index/gpt-5-1-for-developers/ > Developers can now use GPT‑5.1 without reasoning by setting reasoning_effort to 'none'. Need to add that to this enum: https://github.com/simonw/llm/blob/0526abeeea021b23552bcdafc15c278f2bb2e119/llm/default_plugins/openai_models.py#L456-L460 ... or maybe we...

Need to add support for extended prompt cache retention: https://platform.openai.com/docs/guides/prompt-caching#extended-prompt-cache-retention > To use extended caching with GPT‑5.1, add the parameter `"prompt_cache_retention='24h'"` on the Responses or Chat Completions API. See the...

I think the bigger problem here is that a row page with a binary primary key cannot even be linked to. Maybe need some kind of way of representing `hex()`...

Relevant code: https://github.com/simonw/datasette/blob/2170269258d1de38f4e518aa3e55e6b3ed202841/datasette/views/row.py#L17-L21 Which calls: https://github.com/simonw/datasette/blob/2170269258d1de38f4e518aa3e55e6b3ed202841/datasette/app.py#L1643-L1651 Which calls: https://github.com/simonw/datasette/blob/2170269258d1de38f4e518aa3e55e6b3ed202841/datasette/utils/__init__.py#L1234-L1246

This command can help: ```bash rg --pcre2 '])*>' --glob 'datasette-*/**/templates/**' -l ``` It should find all `` with no mention of `core` in between `` in any folder that's a...