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

Open Beginner friendly
#6,686 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp
Domain
api

Research direction

The payload does not name the file that builds the /v1/models response, so search the C++ source for the handler that emits the data array with object: model. Reproduce by calling GET /v1/models on a local server and confirm that created and owned_by are absent. Done when each item includes an integer created and a string owned_by, and the existing Strata extras are still present.

Written by the indexing model from the issue text.

Description

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.

Dominant language
C++
Stars
11.6k
Forks
1k
Avg merge
17d 21h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Niko1221/Strata

All issues in Niko1221/Strata

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.