KellanM/OpenAI-Api-Unreal

Error: Json Value of type 'Null' used as a 'Array' (or 'Object')

andiven opened this issue · 3 comments

My blueprint is built like this and it's getting some errors. I don't know how to fix it, because I can't find which line they are reporting the error on.

image

Log
`
....
LogTemp: Warning: {"id":"----------------","object":"text_completion","created":1678339481,"model":"davinci","choices":[{"text":" I watched .\n","index":0,"logprobs":null,"finish_reason":"stop"}],"usage":{"prompt_tokens":31,"completion_tokens":6,"total_tokens":37}}

LogJson: Warning: Field logprobs is of the wrong type.

LogJson: Error: Json Value of type 'Null' used as a 'Object'.

LogJson: Warning: Field logprobs is of the wrong type.

LogJson: Error: Json Value of type 'Null' used as a 'Object'.

LogJson: Warning: Field tokens was not found.

LogJson: Error: Json Value of type 'Null' used as a 'Array'.

LogJson: Warning: Field token_logprobs was not found.

LogJson: Error: Json Value of type 'Null' used as a 'Array'.

LogJson: Warning: Field text_offset was not found.

LogJson: Error: Json Value of type 'Null' used as a 'Array'.

LogBlueprintUserMessages: [Char_C_0] I watched .

....
`

removed log probs since I don't think anyone actually uses them 😅. Let me know if this fixes your issue!

Duplicate of issue #9 . Closing

您好,请问解决了吗