Ice-Hazymoon / openai-scf-proxy

使用腾讯云函数一分钟搭建 OpenAI 免翻墙代理
2.57k stars 390 forks source link

tokens 超出 #25

Closed Spencer6-7 closed 1 year ago

Spencer6-7 commented 1 year ago
{error: {,…}}
error
: 
{,…}
code
: 
"context_length_exceeded"
message
: 
"This model's maximum context length is 4096 tokens. However, you requested 4112 tokens (112 in the messages, 4000 in the completion). Please reduce the length of the messages or completion."
param
: 
"messages"
type
: 
"invalid_request_error"

completion是什么?post请求云函数那个地址只发了message,云函数又添加内容了?

Ice-Hazymoon commented 1 year ago

这是 OpenAI 的问题,对于非英语和拉丁语系的内容会经常出现这种错误,无法解决,换个方式提问