Skip to Main Content

AI Services

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create a SELECT AI profile with GPT-5 ?

Sylvester JayarajSep 12 2025 — edited Sep 12 2025

Hello People,

Can anyone guide me to a resource where it says how to create a SELECT AI profile using GPT-5 ?

If I create the profile as usual with the model specified as "gpt-5" then the profile is executed successfully but while executing a natural language query I get the following error :

ORA-20400: Request failed with status HTTP 400 - bearer://api.openai.com/v1/chat/completions
Error response - {
"error": {
"message": "Unsupported parameter: 'max_tokens' is not supported with this model. Use 'max_completion_tokens' instead.",
"type": "invalid_request_error",
"param": "max_tokens",
"code": "unsupported_parameter"
}
}

If I try to add the parameter “max_completion_tokens” while creating the profile I get the following error:

ORA-20046: Invalid profile attribute - max_completion_tokens

Is there a way I can get over this ??

Thanks in advance.

Comments
Post Details
Added on Sep 12 2025
3 comments
158 views