KellanM / OpenAI-Api-Unreal

Integration for the OpenAI Api in Unreal Engine
MIT License
649 stars 143 forks source link

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

Closed andiven closed 1 year ago

andiven commented 1 year ago

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 .

.... `

KellanM commented 1 year ago

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

KellanM commented 1 year ago

Duplicate of issue #9 . Closing

qingmuyu commented 9 months ago

您好,请问解决了吗