Skip to content

fix: add typed structs for /v1/models response - #165

Closed
hankbobtheresearchoor wants to merge 2 commits into
Layr-Labs:masterfrom
hankbobtheresearchoor:fix/typed-models-response
Closed

hankbobtheresearchoor wants to merge 2 commits into
Layr-Labs:masterfrom
hankbobtheresearchoor:fix/typed-models-response

Conversation

@hankbobtheresearchoor

Copy link
Copy Markdown
Contributor

Replaces map[string]any construction in handleListModels with typed structs:

  • modelEntry — single model in the data array
  • modelMetadata — metadata block (model_type, quantization, attestation, etc.)
  • modelAttestation — SE/SIP/SecureBoot attestation sub-object
  • modelListResponse — top-level {object, data} wrapper

Same JSON output, compile-time key checking. Zero behavioral change.

Replace map[string]any with modelEntry, modelMetadata,
modelAttestation, and modelListResponse — same JSON, type-safe.
@vercel

vercel Bot commented May 15, 2026

Copy link
Copy Markdown

@hankbobtheresearchoor is attempting to deploy a commit to the EigenLabs Team on Vercel.

A member of the Team first needs to authorize it.

@ethenotethan
ethenotethan requested a review from Gajesh2007 May 15, 2026 21:16
@Gajesh2007

Copy link
Copy Markdown
Member

@codex give this a review

@Gajesh2007

Copy link
Copy Markdown
Member

@hankbobtheresearchoor resolve the conflicts

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…sponse

# Conflicts:
#	coordinator/api/consumer.go
@Gajesh2007 Gajesh2007 closed this Sep 14, 2026
davidtai added a commit that referenced this pull request Oct 6, 2026
Resolve the conflicts with master:

- Telemetry allowlists: master #1208 deleted the coordinator ingest
  allowlist (coordinator/api/telemetry_handlers.go), the Swift
  TelemetryFieldFilter and the TS TELEMETRY_ALLOWED_FIELDS set, and
  rewrote telemetry-schema.md to say no field filter exists. Take
  master's side; the PR's mtp_acceptance allowlist entries have no home.
  The producer in EngineV2Bridge+MTP.swift still emits mtp_acceptance.
- ProviderConfig.swift and EngineV2SlotFactory+Native.swift: keep the
  PR's mtpAcceptance/mtpAcceptanceByModel parameters next to master's
  modelAutopilot and modelArtifactSHA256.
- CHANGELOG.md: move the PR entry to its own "Unreleased — typical MTP
  acceptance" topic section; keep master's entries.
- docs: keep the PR's cli-reference row next to master's autopilot rows
  and master's startup_preload row; use master's date-only freshness
  stamps (docs-check now requires them, also on the design record).
- libs/mlx-swift-lm: pin 87610307 (mlx-swift-lm #165 head), which
  contains mlx-swift-lm main 94dc1976 and so master's pin e407e899.
  libs/mlx-swift stays at 0f4fe403, the revision 87610307 pins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
davidtai added a commit that referenced this pull request Oct 9, 2026
Resolve docs/developer/build.md and test.md by keeping both sides in
master's layout. Pin libs/mlx-swift-lm to the mlx-swift-lm PR #138 head
b6218297, which merges SDK main 3fd4944c (#165 typical acceptance) into
the Gemma 4 stack. libs/mlx ac97252e and libs/mlx-swift 17bbcba7 contain
master's cb77239b and 6923a80f.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants