Dehujiaogeli

Results issues of Dehujiaogeli

# ⚠️ 提交说明 / PR Notice > [!IMPORTANT] > > - 请提供**人工撰写**的简洁摘要,避免直接粘贴未经整理的 AI 输出。 ## 📝 变更描述 / Description (简述:做了什么?为什么这样改能生效?请基于你对代码逻辑的理解来写,避免粘贴未经整理的内容) 渠道模型测试的非阶梯计费原先使用了一套简化公式,只计算普通输入和输出 tokens,没有复用正式请求链路中的文本计费逻辑,因此遇到 cache read/write tokens 时会漏算缓存部分。这个改动让渠道测试结算复用正常文本请求的 quota 计算,并补充缓存 token 语义推断和回归测试,避免测试日志中的消耗金额与实际模型用量不一致。...

https://github.com/router-for-me/CLIProxyAPI/commit/05b972479aeb6885235e8d363cdc8a15be41fd6f

[Python 3 version requirements ](https://github.com/aliyun/aliyun-openapi-python-sdk/blob/6640626a3f6d5d1ff8006b5097a802aec492202b/aliyun-python-sdk-core/setup3.py#L49) [Python 2 version requirements ](https://github.com/aliyun/aliyun-openapi-python-sdk/blob/6640626a3f6d5d1ff8006b5097a802aec492202b/aliyun-python-sdk-core/setup.py#L49) 导致 import 失败, 手动安装 jmespath 可解决 ![image](https://user-images.githubusercontent.com/261867/51071585-652b1480-168e-11e9-895c-fe0f19f04dc2.png)

* **Python Version**: 3.7.3 * **aliyunsdkcore Version**: 2.13.5 * **API**: GetRepoBuildListRequest 填入 RepoName 和 RepoNamespace 参数后, 提示服务暂不可用。 打开HTTP DEBUG模式,尝试将参数复制用Postman发请求,一样503 或是 rpc_invalid_arg (两个错误都会出,没发现什么规律) 仔细对比容器镜像接口文档, 发现sdk发出的请求host不正确,缺少{region-id} 文档要求: ![image](https://user-images.githubusercontent.com/261867/70961002-99d3f700-20bb-11ea-91a5-652020d82cfe.png) 实际发出请求: ![image](https://user-images.githubusercontent.com/261867/70961556-1a472780-20bd-11ea-8f7c-b6ad32664e84.png) 服务器响应: ![image](https://user-images.githubusercontent.com/261867/70961649-5a0e0f00-20bd-11ea-8deb-afa8a3e05fd3.png)...