Skip to content

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

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

fix: add typed structs for /v1/models response#165
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
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

@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
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