From 9ce2b0c3e0cb504d5408306fb174246182bd6e87 Mon Sep 17 00:00:00 2001 From: jerryfane Date: Sun, 25 Oct 2026 18:49:21 +0100 Subject: [PATCH] fix(jev): follow rolling model alias (#8) --- README.md | 4 +++- internal/jev/request.go | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 562e6f7..f44c8be 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,9 @@ Exit codes: The GitHub modes use the `gh` CLI. The key comes from `$OPENROUTER_API_KEY`, else the `OPENROUTER_API_KEY` line in `~/.config/gitmoot/keychain.env`. The -model is pinned to `typesafe/jev-1.13`. +default model is OpenRouter's rolling `~typesafe/jev-latest` alias (including the +leading `~`), not a pinned release. The System One endpoint is unchanged. +The response may name a concrete model; do not infer that release from the alias. ## Local receipts diff --git a/internal/jev/request.go b/internal/jev/request.go index 13537b0..d9d5c75 100644 --- a/internal/jev/request.go +++ b/internal/jev/request.go @@ -12,14 +12,14 @@ import ( const ( // DefaultEndpoint is OpenRouter's System One route. DefaultEndpoint = "https://openrouter.ai/api/v1/systemone" - // DefaultModel is pinned so a model release never silently changes a - // decision surface that was measured against a specific version. - DefaultModel = "typesafe/jev-1.13" + // DefaultModel follows the rolling OpenRouter alias; a response may name + // the concrete release selected for that request. + DefaultModel = "~typesafe/jev-latest" DefaultTimeout = 20 * time.Second DefaultMaxRetries = 2 ) -// Request is the body of POST /api/v1/systemone: a state, a pinned model, +// Request is the body of POST /api/v1/systemone: a state, a model selector, // and a map of typed questions. type Request struct { State any `json:"state"`