generated from songquanpeng/gin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
讯飞星火V3偶线Panic detected index out of range #820
Labels
bug
Something isn't working
Comments
确定是最新版本吗? |
有一个地方没有做校验,已经处理 |
5 tasks
H0llyW00dzZ
pushed a commit
to H0llyW00dzZ/one-api
that referenced
this issue
Dec 20, 2023
H0llyW00dzZ
added a commit
to H0llyW00dzZ/one-api
that referenced
this issue
Dec 20, 2023
* feat: add Google Gemini Pro support (songquanpeng#826) * fest: Add Google Gemini Pro, fix songquanpeng#810 * fest: Add tooling to Gemini; Add OpenAI-like system prompt to Gemini * refactor: removing unused if statement * fest: Add dummy model message for system message in gemini model * chore: update implementation --------- Co-authored-by: JustSong <[email protected]> * fix: fix Gemini stream problem * fix: fix xunfei panic error (close songquanpeng#820) * fix: try to return a more meaningful error message (close songquanpeng#817) * feat: reset image num to 1 when not given (songquanpeng#821) * Update relay-image.go * fix: reset image num to 1 when not given --------- Co-authored-by: JustSong <[email protected]> * feat: able to set sqlite busy_timeout (songquanpeng#818) * add sqlite busy_timeout=3000 * chore: update impl --------- Co-authored-by: JustSong <[email protected]> * feat: update ali relay implementation (songquanpeng#830) * 修改通译千问最新接口:1.删除history参数,改用官方推荐的messages参数 2.整理messages参数顺序,补充必要上下文信息 3.用autogen调试测试通过 * chore: update impl --------- Co-authored-by: JustSong <[email protected]> * feat: add condition to validate n value for non-Azure channels (songquanpeng#775) - Add a condition to validate the n value only for non-Azure channels, ensuring it falls within the acceptable range. - Fix Azure compatibility * docs: update readme * docs: update readme * fix: fix gemini panic (close songquanpeng#833) * fix: fix max_tokens check --------- Co-authored-by: David Zhuang <[email protected]> Co-authored-by: JustSong <[email protected]> Co-authored-by: Ghostz <[email protected]> Co-authored-by: Calcium-Ion <[email protected]> Co-authored-by: Oliver Lee <[email protected]> Co-authored-by: ShinChven ✨ <[email protected]>
dirname
pushed a commit
to dirname/one-api
that referenced
this issue
Dec 22, 2023
使用星火时也遇到了类似的问题,目前这个pr是不是还没发呀? [INFO] 2024/01/18 - 17:13:39 | 20240118171339737917932HyGmnkty | user 1 has enough quota 99995436, trusted and no need to pre-consume
[GIN] 2024/01/18 - 17:13:40 | 20240118171339737917932HyGmnkty | 200 | 353.409299ms | 192.168.30.17 | POST /v1/chat/completions
[SYS] 2024/01/18 - 17:13:40 | error reading stream response: websocket: close 1000 (normal): close this ws conn |
greeeds
pushed a commit
to greeeds/one-api
that referenced
this issue
Mar 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
例行检查
问题描述
使用讯飞星火V3(添加渠道时填写的接口地址版本是v3.1),发现会偶线这样的报错:
Panic detected, error: runtime error: index out of range [0] with length 0. Please submit a issue here: https://github.com/songquanpeng/one-api
查看日志看到如下信息:
[SYS] 2023/12/14 - 16:57:49 | error reading stream response: websocket: close 1000 (normal): close this ws conn
[SYS] 2023/12/14 - 16:57:49 | panic detected: runtime error: index out of range [0] with length 0
除此之外并没有更多的日志信息了,我查看的是数据目录里的日志文件。
这个问题并不是百分百重现的,偶尔请求就会有,所以不太找得出是什么原因。
也不知道是否是遇到了QPS限制,如果确认是的话,那能否直接提示QPS限制?
复现步骤
直接正常发起请求
预期结果
正常返回结果
The text was updated successfully, but these errors were encountered: