one-api icon indicating copy to clipboard operation
one-api copied to clipboard

百度文心模型 ,无法回复

Open yanshan2023 opened this issue 1 year ago • 7 comments

例行检查

  • [ ] 我已确认目前没有类似 issue
  • [ ] 我已确认我已升级到最新版本
  • [ ] 我已完整查看过项目 README,尤其是常见问题部分
  • [ ] 我理解并愿意跟进此 issue,协助测试和提供反馈
  • [ ] 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述 宝塔dock安装 镜像justsong/one-api:latest,百度文心模型 ERNIE-BOT 付费通道已开通,渠道中的参数设置应该没问题,在psotman调用正常,系统中流式调用不返回,一次也没成功过,看后台报错,[INFO] 2023/10/18 - 08:50:00 | 20231018085000880227988jwugdtDB | user 1 has enough quota 100057258, trusted and no need to pre-consume [SYS] 2023/10/18 - 08:50:03 | error unmarshalling stream response: invalid character 'Y' looking for beginning of value 复现步骤 每次调用渠道接口都报错 预期结果 成功后返回正常文本,如果报错希望在后台显示详细的错误信息,最好能显示原始的错误内容。

yanshan2023 avatar Oct 18 '23 09:10 yanshan2023

我也u遇到这个问题:

[SYS] 2023/10/19 - 04:37:14 | failed to get token encoder for model ERNIE-Bot: no encoding for model ERNIE-Bot, using encoder for gpt-3.5-turbo [INFO] 2023/10/19 - 04:37:14 | 20231019043714307561431CewAWIRd | user 1 has enough quota 99451412, trusted and no need to pre-consume [SYS] 2023/10/19 - 04:37:14 | error unmarshalling stream response: invalid character 'r' looking for beginning of value

jgbrblmd avatar Oct 19 '23 04:10 jgbrblmd

看上去是上游返回了 HTML 页面

songquanpeng avatar Nov 02 '23 14:11 songquanpeng

[INFO] 2023/11/24 - 14:32:56 | 20231124143256224521689WnrEhd9d | user 1 has enough quota 99983289, trusted and no need to pre-consume [SYS] 2023/11/24 - 14:32:56 | error unmarshalling stream response: invalid character 'r' looking for beginning of value [GIN] 2023/11/24 - 14:32:56 | 20231124143256224521689WnrEhd9d | 200 | 342.259971ms | 43.159.41.149 | POST /v1/chat/completions

同样的问题

ExpressGit avatar Nov 24 '23 06:11 ExpressGit

一样的问题

huelsgp27 avatar Dec 14 '23 09:12 huelsgp27

我也是一样的问题,应该是文心返回了html格式

Vince-Lau avatar Jan 08 '24 10:01 Vince-Lau

一样的问题

ychost avatar Feb 01 '24 04:02 ychost

使用的ERNIE-Bot-turbo模型,就会报错 [SYS] 2024/03/25 - 06:35:08 | error unmarshalling stream response: invalid character 'r' looking for beginning of value [GIN] 2024/03/25 - 06:35:08 | 202403250635083100426846255732 | 200 | 290.176916ms | 10.107.72.84 | POST /v1/chat/completions [INFO] 2024/03/25 - 06:35:08 | 202403250635083100426846255732 | record consume log: userId=1, channelId=2, promptTokens=0, completionTokens=0, modelName=ERNIE-Bot-turbo, tokenName=wangyao, quota=0, content=模型倍率 0.57

azurewy avatar Mar 25 '24 06:03 azurewy