Migrated from monorepo during Forgejo registry consolidation 2026-05-07
Find a file
Viktor Barzin 7baa66d994 openai-compat: pass --model from request through to claude -p
Replaces the MODEL_TO_AGENT dict (which only mapped model -> agent and
ignored the model itself) with a SUPPORTED_MODELS allowlist + per-request
--model CLI flag. Callers can now pick Haiku/Sonnet/Opus per request to
control cost; unknown model IDs 400 with the supported list; missing
model defaults to claude-sonnet-4-6 (mid-tier).

The --model CLI flag overrides whatever model: is in the agent's
frontmatter, so recruiter-triage's `model: sonnet` no longer pins
every request to Sonnet.

Verified with claude CLI 2.1.153 that the bare-form IDs
(claude-haiku-4-5, claude-sonnet-4-6, claude-opus-4-7) are accepted
without date suffixes — confirmed via modelUsage keys in the JSON
output.

Six new tests cover: default routing, haiku/sonnet/opus pass-through,
unsupported-model 400 shape, and the response.model echo.
2026-06-01 19:33:54 +00:00
agents recruiter-triage: AI culture & tooling section in deep research 2026-05-16 13:04:57 +00:00
app openai-compat: pass --model from request through to claude -p 2026-06-01 19:33:54 +00:00
beads Initial extraction from monorepo 2026-05-07 17:07:12 +00:00
tests openai-compat: pass --model from request through to claude -p 2026-06-01 19:33:54 +00:00
.dockerignore Initial extraction from monorepo 2026-05-07 17:07:12 +00:00
.gitignore Initial extraction from monorepo 2026-05-07 17:07:12 +00:00
.woodpecker.yml Phase 4: drop registry.viktorbarzin.me dual-push, Forgejo only 2026-05-07 23:16:53 +00:00
Dockerfile claude-agent-service: add recruiter-triage agent 2026-05-16 11:40:13 +00:00
LICENSE.txt Initial extraction from monorepo 2026-05-07 17:07:12 +00:00
requirements-dev.txt Initial extraction from monorepo 2026-05-07 17:07:12 +00:00
requirements.txt Initial extraction from monorepo 2026-05-07 17:07:12 +00:00