[Engine] serve: `/v1/models` objects lack the OpenAI-required `created` (and `owned_by`) fields — strict SDK clients fail to parse
Maintainers usually reply within 6 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Niko1221/Strata
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Niko1221/Strata#6731 · 2 comments ·
Maintainers usually reply within 6 days
-
needs-format
Difficulty 1/5 Under an hour Newbie friendliness 82/100
Niko1221/Strata#6721 · 1 comment ·
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Niko1221/Strata#6698 · 2 comments ·
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Niko1221/Strata#6670 · 2 comments ·
Maintainers usually reply within 6 days
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
sav-oss-org/ptusa_main#1610 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
open-astro/AlpacaBridge#2606 · 1 comment ·
Maintainers usually reply within 1 day
-
Refactor force_torque_system integration test to use EcmScopePossibly taken @patelshivani2283-lab claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
upnp > 18 fixesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BZFlag-Dev/bzflag#407 ·