All Products
Search
Document Center

PolarDB:ModifyModelService

Last Updated:Jun 10, 2026

Mengubah layanan model.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Sintaks permintaan

POST  HTTP/1.1

Parameter permintaan

Parameter

Type

Required

Description

Example

GwClusterId

string

Yes

ID instans gerbang.

pg-xxxxxxxxxx

Name

string

Yes

Nama layanan model.

testName

ModelCategory

string

Yes

Kategori model.

text

Protocol

string

Yes

Jenis protokol. Nilai valid:

  • openai

  • anthropic

  • bailian

  • vllm.

openai

BaseUrl

string

No

Alamat layanan upstream.

https://dashscope.aliyuncs.com/compatible-mode/v1

ApiKey

string

No

Kunci API untuk layanan model.

xxx

InputCostPointsPerMillion

string

No

Biaya dalam poin per juta token input.

10

OutputCostPointsPerMillion

string

No

Biaya dalam poin per juta token output.

10

RequestCostPoints

string

No

Biaya dalam poin per permintaan.

10

ModelServiceId

string

Yes

ID layanan model.

ms-xxxxxx

RegionId

string

No

ID Wilayah.

cn-beijing

Elemen respons

Element

Type

Description

Example

object

The response schema.

RequestId

string

The request ID.

6A2EE5B4-CC9F-46E1-A747-E43BC9******

ModelServiceId

string

The ID of the model service.

ms-xxxxxx

Status

string

The status of the model service.

Enable

Contoh

Respons sukses

JSONformat

{
  "RequestId": "6A2EE5B4-CC9F-46E1-A747-E43BC9******",
  "ModelServiceId": "ms-xxxxxx",
  "Status": "Enable"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.