Troubleshooting of OpenAI API: Difference between revisions
Jump to navigation
Jump to search
m
→How to fix "None is not of type string - messages.1.content"
| Line 60: | Line 60: | ||
=== How to fix "None is not of type string - messages.1.content" === | === How to fix "None is not of type string - messages.1.content" === | ||
* Error message: None is not of type 'string' - 'messages.1.content' | * Error message: | ||
<pre> | |||
{ | |||
"error": { | |||
"message": "None is not of type 'string' - 'messages.1.content'", | |||
"type": "invalid_request_error", | |||
"param": null, | |||
"code": null | |||
} | |||
} | |||
</pre> | |||
* Example Input | * Example Input | ||
<pre> | <pre> | ||