AgentRouter error — Panic detected, error: interface conversion: interface {} is nil, not types.OpenAIError. Please submit a issue here: https://github.com/Calcium-Ion/new-api #6501
Closed
parvez-miah
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi AgentRouter team,
I'm encountering the following error when making API requests through AgentRouter:
AgentRouter error — Panic detected, error: interface conversion: interface {} is nil, not types.OpenAIError.
Please submit an issue here: https://github.com/Calcium-Ion/new-api
From the error message, it appears that the backend is panicking instead of returning a proper API error. This seems to occur when an upstream provider returns an unexpected or nil error response, causing a failed type assertion to types.OpenAIError.
Could you please investigate whether this is an issue in AgentRouter's integration with new-api or an upstream compatibility issue?
Thank you!
All reactions