Skip to content

Serialize YAML dates in openai endpoint list --json - #1850

Open
remote-controlled-man wants to merge 1 commit into
simonw:mainfrom
remote-controlled-man:codex/prflow-b9ec4e541bfe
Open

remote-controlled-man wants to merge 1 commit into
simonw:mainfrom
remote-controlled-man:codex/prflow-b9ec4e541bfe

Conversation

@remote-controlled-man

Copy link
Copy Markdown
Contributor

An unquoted YAML date such as api_version: 2024-02-01 is parsed as a Python date. That currently makes llm openai endpoint list --json raise TypeError on a hand-written configuration.

Encode YAML date and datetime values as ISO 8601 strings in the JSON listing. The CLI regression test covers a date and a timestamp with a UTC offset.

On macOS with Python 3.12, the full pytest suite, Black, mypy, Ruff, Cog, the sdist and wheel build, and the plugin-loading smoke test passed.

OpenAI Codex assisted with investigation, implementation, and validation.

Copilot AI balanced review requested due to automatic review settings November 4, 2026 08:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

This branch has not been deployed

No deployments
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