Deduplicate the inference model registry by id

a9a251e3ebfd · AtlantisPleb · · parent 7ecad91026b3

Deduplicate the inference model registry by id

Deploy story

What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.

pushed
by user · WAL seq 287 · 2026-08-24T17:36:14.399978Z

Changed files

  • modified lib/openagents/inference/models.ex

Diff

1 file changed, +4 -1

lib/openagents/inference/models.ex modified +4 -1

@@ -25,7 +25,10 @@ defmodule OpenAgents.Inference.Models do

25 25
26 26
  @doc "Every model a grant may pin, in the order a client should offer them."
27 27
  @spec all() :: [t()]
28
  def all, do: [default(), ox_alpha()]
28
  def all do
29
    [default(), ox_alpha()]
30
    |> Enum.uniq_by(& &1.id)
31
  end
29 32
30 33
  @doc "The model ids a grant may pin."
31 34
  @spec ids() :: [String.t()]

This page updates live while a promote is in flight · changelog