Note
This view is available starting with V4.6.0 BP1.
Overview
Displays the AI model parameter (Model Profile) configuration information for the current tenant, allowing you to view the provider/model level parameters created or updated using the ALTER_MODEL_PROFILE PL statement.
Columns
field |
Type |
Is NULL |
Description |
|---|---|---|---|
| MODEL | varchar(513) | NO | The full model name formed by joining provider_name and model_name with /, for example, aliyun/qwen-plus. |
| MODEL_CONFIG | varchar(4096) | YES | Model API call parameters in JSON format. Corresponds to the model_config parameter of ALTER_MODEL_PROFILE. |
| RUN_CONFIG | varchar(4096) | YES | OceanBase Database runtime options in JSON format. Corresponds to the run_config parameter of ALTER_MODEL_PROFILE. |
| CREATE_TIME | timestamp(6) | NO | Creation time. |
| UPDATE_TIME | timestamp(6) | NO | Last modification time. |
Sample query
This example shows how to query the parameter configuration information of AI models in the current tenant.
If you have not registered a provider, you must first register one. Replace
access_keyandbase_urlwith your actual values:CALL DBMS_AI_SERVICE.REGISTER_PROVIDER('test-provider', '{ "protocol": "openai", "base_url": "https://xxx", "access_key": "sk-xxx" }');Use
ALTER_MODEL_PROFILEto set parameters for the model:CALL DBMS_AI_SERVICE.ALTER_MODEL_PROFILE('test-provider/test-model', '{ "model_config": { "max_tokens": 4096, "temperature": 0 }, "run_config": { "batch_size": 16, "max_image_size": 4194304, "min_concurrency": 10, "max_concurrency": 100 } }');Query model parameter configuration information:
SELECT MODEL, MODEL_CONFIG, RUN_CONFIG FROM oceanbase.DBA_OB_AI_MODEL_PROFILES WHERE MODEL = 'test-provider/test-model';The sample result is as follows:
MODEL MODEL_CONFIG RUN_CONFIG test-provider/test-model {"max_tokens": 4096, "temperature": 0} {"batch_size": 16, "max_image_size": 4194304, "max_concurrency": 100, "min_concurrency": 10} 1 row in set
