Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions ucloud/services/uai_modelverse/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,16 +349,6 @@ def get_uf_square_model_detail(

**Response Model**

**Pricing**
- **Completion** (float) - 输出定价
- **Currency** (str) - 币种
- **Image** (float) - 生图定价
- **Prompt** (float) - 提示词定价
- **Unit** (str) - 单位(中文),如“次” “百万”
- **UnitEn** (str) - 单位(English),如“Time” “Million”
- **Video** (str) - 生视频定价


**PriceRate**
- **ChargeItem** (str) - 收费项:input/output/thinking/tool...
- **ChargeItemDescription** (str) - 收费项描述
Expand All @@ -369,6 +359,16 @@ def get_uf_square_model_detail(
- **UnitEn** (str) - 计价单位英文


**Pricing**
- **Completion** (float) - 输出定价
- **Currency** (str) - 币种
- **Image** (float) - 生图定价
- **Prompt** (float) - 提示词定价
- **Unit** (str) - 单位(中文),如“次” “百万”
- **UnitEn** (str) - 单位(English),如“Time” “Million”
- **Video** (str) - 生视频定价


**PriceTier**
- **Condition** (str) - 档位/条件(例如 "32k"、"128k")
- **Description** (str) - 档位描述(例如 "标准上下文 32k")
Expand Down Expand Up @@ -910,11 +910,6 @@ def list_um_infer_request_logs(

**Response Model**

**RequestLogSummary**
- **FailedRequests** (int) - 查询条件命中的失败请求数
- **TotalRequests** (int) - 查询条件命中的总请求数


**RequestLogItem**
- **ApiKeyId** (str) - API Key ID
- **ApiKeyName** (str) - API Key 名称
Expand All @@ -939,6 +934,11 @@ def list_um_infer_request_logs(
- **TotalTokens** (int) - 总 Token 数


**RequestLogSummary**
- **FailedRequests** (int) - 查询条件命中的失败请求数
- **TotalRequests** (int) - 查询条件命中的总请求数


**ListUMInferRequestLogsData**
- **Items** (list) - 见 **RequestLogItem** 模型定义
- **Summary** (dict) - 见 **RequestLogSummary** 模型定义
Expand Down
22 changes: 11 additions & 11 deletions ucloud/services/uai_modelverse/schemas/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ class FilterOptionIntegerSchema(schema.ResponseSchema):
}


class PricingSchema(schema.ResponseSchema):
"""Pricing - 定价策略"""

fields = {
"Completion": fields.Float(required=False, load_from="Completion"),
"Currency": fields.Str(required=False, load_from="Currency"),
"Image": fields.Float(required=False, load_from="Image"),
"Prompt": fields.Float(required=False, load_from="Prompt"),
}


class PriceRateSchema(schema.ResponseSchema):
"""PriceRate - 该档位下的收费列表(有序数组)"""

Expand Down Expand Up @@ -103,17 +114,6 @@ class PriceTierSchema(schema.ResponseSchema):
}


class PricingSchema(schema.ResponseSchema):
"""Pricing - 定价策略"""

fields = {
"Completion": fields.Float(required=False, load_from="Completion"),
"Currency": fields.Str(required=False, load_from="Currency"),
"Image": fields.Float(required=False, load_from="Image"),
"Prompt": fields.Float(required=False, load_from="Prompt"),
}


class SquareModelSchema(schema.ResponseSchema):
"""SquareModel - 广场模型"""

Expand Down
Loading