[Engine] serve: `/v1/models` objects lack the OpenAI-required `created` (and `owned_by`) fields — strict SDK clients fail to parse

Aperta Adatta ai principianti
#6,686 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 6 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
api

Direzione di ricerca

Il payload non indica il file che costruisce la risposta di /v1/models, quindi cerca nel sorgente C++ l'handler che emette l'array data con object: model. Riproduci chiamando GET /v1/models su un server locale e conferma che created e owned_by sono assenti. È completato quando ogni elemento include un created intero e un owned_by stringa, e gli extra Strata esistenti sono ancora presenti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Title: [Engine] serve: /v1/models objects lack the OpenAI-required created (and owned_by) fields — strict SDK clients fail to parse

Describe the bug
The OpenAI-compatible GET /v1/models response omits the created field (and owned_by) on each object in data. In the OpenAI API reference, a model object is {id, created, object, owned_by}, and created is a required integer (Unix timestamp). Several client libraries validate it strictly and raise on the missing key, so simply listing models fails even though completions work fine.

Version

  • Strata 0.2.18, engine 0.1.64, Linux, Docker (ghcr.io/niko1221/strata:0.2.18-cuda13)
  • Checked again today; 0.2.19's release notes don't mention this.

To Reproduce

curl -s -H "Authorization: Bearer <key>" https://<host>/v1/models

Actual (real response, formatted):

{
  "object": "list",
  "data": [
    {
      "id": "qwen3.8-flash-next-unsloth-ud-q4_k_xl",
      "object": "model",
      "status": { "value": "loaded" },
      "max_model_len": 131072,
      "context_length": 131072,
      "max_context_length": 131072,
      "meta": { "n_ctx": 131072 },
      "architecture": { "input_modalities": ["text", "image"], "output_modalities": ["text"] }
    }
  ]
}

No created, no owned_by.

Impact example (official OpenAI Python SDK):

from openai import OpenAI
client = OpenAI(base_url="https://<host>/v1", api_key="<key>")
client.models.list()
# pydantic_core.ValidationError: Model.created Field required [type=missing, ...]

Other strict parsers behave the same; lenient clients (curl, OpenClaw's pinned provider config) don't notice, which is probably why it went unseen.

Expected
Per the OpenAI spec, every data item carries created (Unix timestamp) and owned_by. Suggested values: created = model load time (or a fixed build timestamp, like vLLM's constant 1677612600), owned_by = "strata" or the GGUF's advertised author. The existing Strata-specific extras (status, max_model_len, meta, architecture) can stay — they're a superset and useful.

Related
Same compliance area, different fields: #6402 (no output-token limit in the list), #5836/#6180 (context fields stripped via Control gateway). The 0.2.17 work (#6193, #1882, #6116) improved the list shape but didn't add the OpenAI-required base fields.

Lingua principale
C++
Stelle
11.6k
Fork
1k
Merge medio
17g 21h
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Niko1221/Strata

Tutte le issue di Niko1221/Strata

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.