12 check-ins related to "stage-4"
|
2026-11-19
| ||
| 01:39 |
Land stage 4: any model
A model registry, a provider-neutral journal, and adapters for the Messages API, Chat Completions (OpenAI, OpenRouter and compatible servers) and OpenAI Responses, with conversations moving between them. check-in: aca81cd9e3 user: dmestas tags: trunk | |
| 01:36 | Record stage 4: any model, done closed check-in: 92fa046e46 user: dmestas tags: stage-4 | |
| 01:16 | Fil-C payload: build all three decoders and run the registry tests check-in: 6ecb1963da user: dmestas tags: stage-4 | |
| 01:15 |
Benchmark each decoder and parse a chat chunk in one cached query
make bench-pic now decodes one realistic reply (500 text deltas and a 50-piece tool call) per API. It showed the Chat Completions decoder at 9.8ms against 1.3ms for the Messages API decoder, because it compiled about ten statements per chunk; one cached query per chunk and per tool delta brings it to 1.9ms. The baseline gains the decoder rows. check-in: 0e4ade46bb user: dmestas tags: stage-4 | |
| 01:08 |
Add the OpenAI Responses adapter
Output items are kept whole, so reasoning items with encrypted_content go back verbatim to the same model under store:false; the final output list is authoritative and fills in late encrypted_content. The neutral form follows Pi: reasoning to thinking, messages to text, function calls to tool calls with call_id|item_id ids. Requests send input items, function_call_output under the call ids, flat tools, and reasoning effort with encrypted reasoning for reasoning models. Recorded streams, a fuzz target and fake server cases cover it, including conversations moving between the Messages API and Responses both ways. check-in: dd694d986b user: dmestas tags: stage-4 | |
| 00:56 |
Add the Chat Completions adapter for OpenAI, OpenRouter and compatibles
A chunk decoder following Pi: text, reasoning from reasoning_content, reasoning or reasoning_text kept under its field, OpenRouter reasoning_details verbatim, tool calls by index, usage, finish_reason, and in-stream errors. Requests follow Pi too: system or developer role, tools as functions, tool messages, stream_options, store and reasoning by dialect. The retry loop and header assembly move into a shared module both adapters use. Recorded streams, a fuzz target and fake server cases cover it, including a conversation moving between the two APIs in both directions. check-in: 55cff08c2c user: dmestas tags: stage-4 | |
| 00:38 |
Journal every reply in two forms and convert across models
Assistant entries keep the provider content verbatim with its origin (provider, api, model) and Pi neutral form; tool calls come from the neutral form, the same for every provider. A turn goes back verbatim to the model that wrote it and is otherwise rebuilt from the neutral form, without thinking and with tool-call ids normalised identically in calls and results. --model resolves through the registry, keys come from the model, and schema 3 journals migrate in place on open. check-in: 3ff8346a3f user: dmestas tags: stage-4 | |
| 00:24 |
Add the model registry: provider/model names, Pi compat, models.json
Built-in providers carry the base URL, wire API and key variable Pi uses for them; OpenAI-compatible dialects are detected from provider and base URL as Pi does; ~/.pic/models.json, or an existing Pi models file, adds providers such as a local server and overrides any field. check-in: 42a80c44fd user: dmestas tags: stage-4 | |
| 00:23 | Bring CI and its test fixes into stage 4 check-in: f40e74ccdb user: dmestas tags: stage-4 | |
| 00:23 |
Land CI: the full suite on every push, on the Mac runner
Adds ci/test.yml and its docs, and the fixes the first runs exposed: build paths quoted for directories with spaces, and crash tests that wait on signals from the running command instead of fixed sleeps. check-in: a515a7995c user: dmestas tags: trunk | |
|
2026-11-18
| ||
| 22:37 |
Plan stage 4: any model, with a provider-neutral journal
Providers beyond the first are now a requirement: OpenAI, OpenRouter and any OpenAI-compatible server. Stage 4 adds a provider-neutral journal, a model registry, and Chat Completions and Responses adapters; follow-up conversations and pic-owned compaction move to stage 5. check-in: 065d180567 user: dmestas tags: stage-4 | |
| 21:20 | Land stages 2 and 3: real provider, Pi tools, context and benchmarks check-in: 6a67cdb25a user: dmestas tags: trunk | |