Skip to content

ChatCompletionResponse.Created r string type #1002

Open
@dragonTalon

Description

@dragonTalon

I found that the format created returned by some models is of type String
So i think created must support compatibility between int64 and string formats

{
    "id": "",
    "created": "2025/05/16 16:29:57",
    "model": null,
    "object": "chat.completion",
    "system_fingerprint": null,
    "choices": [
        {
            "finish_reason": "stop",
            "index": 0,
            "message": {
                "content": "....",
                "role": "assistant",
                "tool_calls": null,
                "function_call": null
            }
        }
    ],
    "usage": {
  
    },
    "service_tier": null,
    "code": 0,
    "error_message": ""
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions