Artifact 06b9483afab74120cc0c63549b2774c55b17821b8db6db1e05146e0f9c13d062:
- File
ci/test.yml
— part of check-in
[55cff08c2c]
at
2026-11-19 00:56:53
on branch stage-4
— 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. (user: dmestas, size: 860) [annotate] [blame] [check-ins using]
# pic CI on the Mac mini runner (macOS arm64): the full suite on every push # and landing. Fuzzing runs briefly when an LLVM clang with libFuzzer is # installed; Fil-C runs separately on hetzner-hel (tools/remote/run.sh). on: [push, landing] jobs: test: timeout-minutes: 45 steps: - name: environment (limits differ under launchd) run: | id; echo "TMPDIR=$TMPDIR"; ulimit -a; launchctl limit 2>/dev/null || true - name: suite (sanitizer and release builds) run: make test-pic - name: fuzz smoke (LLVM clang only) run: | if [ -x /opt/homebrew/opt/llvm/bin/clang ]; then make fuzz-decode FUZZ_SECONDS=30 && make fuzz-http FUZZ_SECONDS=30 && make fuzz-chat FUZZ_SECONDS=30 else echo "fuzz: skipped, no LLVM clang with libFuzzer on this runner" fi