The ALTER_AI_MODEL_ENDPOINT procedure is used to modify the access endpoint of an AI model object.
Syntax
PROCEDURE alter_ai_model_endpoint(
IN name VARCHAR(128),
IN params JSON);
Parameters
Parameter |
Description |
Type |
Value range |
Nullable |
|---|---|---|---|---|
| name | The name of the access endpoint for the AI model object. | VARCHAR(128) | NO | |
| params | ai_model_name, which is the name of the AI model object created by the CREATE_AI_MODEL procedure. |
JSON STRING | NO | |
url: the complete URL of the AI model service endpoint, which is the specific API address for features such as chat, embedding, or reordering, rather than the base URL. |
JSON STRING | NO | ||
access_key, which is the access key for accessing the endpoint. |
JSON STRING | NO | ||
request_model_name, which indicates the user-defined model name, for example, big-m3-custom. It is placed in the request body. |
JSON STRING | YES. It can be empty or unspecified. | ||
provider, indicating the model provider. |
JSON STRING |
|
NO |
Examples
Modify the access endpoint of an AI model object.
CALL DBMS_AI_SERVICE.ALTER_AI_MODEL_ENDPOINT (
'my_model_endpoint1', '{
"access_key" : "sk2-xxxxxxxxxxxx",
"url": "https://api.deepseek.com/chat/completions"
}');