14,954
edits
| Line 124: | Line 124: | ||
} | } | ||
</pre> | </pre> | ||
=== How to fix "API Error (HTTP 400): Encrypted content is not supported with this model" === | |||
Error message: API Error (HTTP 400): Encrypted content is not supported with this model. | |||
<pre> | |||
Error!: API Error (HTTP 400): { | |||
"error": { | |||
"message": "Encrypted content is not supported with this model.", | |||
"type": "invalid_request_error", | |||
"param": "include", | |||
"code": null | |||
} | |||
} | |||
</pre> | |||
Solution: | |||
# This error occurs when using the `include` parameter (e.g., for prompt caching or encrypted content) with a model that does not support it. GPT-4.1 does not support encrypted/included content in this way. | |||
# Remove or omit the `include` parameter from your API request payload. | |||
# See more details on OpenAI's model documentation: https://platform.openai.com/docs/models | |||
=== How to fix "Invalid parameter: 'response_format' of type 'json_object' is not supported with this model" === | === How to fix "Invalid parameter: 'response_format' of type 'json_object' is not supported with this model" === | ||