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 of the AI model object. | VARCHAR(128) | NO | |
| params | ai_model_name specifies the name of the AI model object created by the CREATE_AI_MODEL procedure. |
JSON STRING | NO | |
url specifies the complete URL of the AI model service access endpoint, which is the specific interface address for features such as chat, embedding, or reranking, not the base URL. |
JSON STRING | NO | ||
access_key specifies the access key for the endpoint. |
JSON STRING | NO | ||
request_model_name specifies the user-defined model name, such as big-m3-custom, placed in the request message body. |
JSON STRING | YES, can be empty or unspecified | ||
provider specifies 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"
}');