Closed halpz closed 1 year ago
maybe something has changed with the response object data structure?
Getting the same error here.
So you're getting a response back without an ID I see...
Maybe something has changed, let me take a look...
@halpz Can you give me your input so I can try to reproduce?
this is actually what happens when you are getting a error model returned. It tries to parse it into success model, fails and print the parsing error message.
Seeing the same issue - see my comment in the other issue: https://github.com/dylanshine/openai-kit/issues/22#issuecomment-1474626158
This is caused by a rogue print statement, will remove shortly.
It seems the response object is not mapping to the codable 'Completion' object properly:
I'm getting this error:
keyNotFound(CodingKeys(stringValue: "id", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: \"id\", intValue: nil) (\"id\").", underlyingError: nil))