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

Abierto Apto para principiantes
#6,686 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 6 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
cpp
Área
api

Línea de trabajo

El payload no indica el archivo que construye la respuesta de /v1/models, así que busca en el código fuente C++ el handler que emite el arreglo data con object: model. Reproduce el problema llamando a GET /v1/models en un servidor local y confirma que created y owned_by no están presentes. Está terminado cuando cada elemento incluye un created entero y un owned_by de tipo cadena, y los extras existentes de Strata siguen presentes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
11.6k
Forks
1k
Merge medio
17 d 21 h
PR fusionados (30 d)
3

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Niko1221/Strata

Todos los issues de Niko1221/Strata

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.