盘古大模型 PanguLargeModels-构造请求:请求URI

时间:2025-02-12 15:09:35

请求URI

请求URI由如下部分组成:

{URI-scheme} :// {Endpoint} / {resource-path} ? {query-string}

表1 请求URI

参数

说明

URI-scheme

传输请求的协议,当前所有API均采用HTTPS协议。

Endpoint

承载REST服务端点的服务器 域名 或IP。

resource-path

资源路径,即API访问路径。从具体API的URI模块获取。

query-string

查询参数,可选,查询参数前面需要带一个“?”,形式为“参数名=参数取值”

获取请求URI的步骤详见请求URI,示例如下:

https://{endpoint}/v1/{project_id}/deployments/{deployment_id}/chat/completions
support.huaweicloud.com/api-pangulm/pangulm_05_0008.html