Skip to content

Decoding Data Corrupted on CreateChatCompletionsStream #47

@jmanalang3

Description

@jmanalang3

I got error on createChatCompletionsStream.

Error: dataCorrupted(Swift.DecodingError.Context(codingPath: [], debugDescription: "The given data was not valid JSON.", underlyingError: Optional(Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character ':' after top-level value around line 1, column 16." UserInfo={NSDebugDescription=Unexpected character ':' after top-level value around line 1, column 16., NSJSONSerializationErrorIndex=15})))

Sample data response
it seem the data is invalid

data: {"id":"chatcmpl-9lxsJJyn7dKbdXR6ZL0gKjmjata8b","object":"chat.completion.chunk","created":1721218603,"model":"gpt-3.5-turbo-0125","system_f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions