You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here we are getting an exception error as api key is wrong.
i have multiple llms so any better way for handling it ?
such as ex APIConnectionError,AuthenticationError,APIkeyExpired,Wrongmodel name etc
Motivation
im trying to build production ready app & we are calling llm in our code
we can do it hardcoded such as if the error code =402 then it should return the response .
instead of that if we can make it better error code hadnling?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Checked
Feature request
im trying to build prodcution redy app & we are calling llm in our code
here we are getting an exception error as api key is wrong.
i have multiple llms so any better way for handling it ?
such as ex APIConnectionError,AuthenticationError,APIkeyExpired,Wrongmodel name etc
Motivation
im trying to build production ready app & we are calling llm in our code
we can do it hardcoded such as if the error code =402 then it should return the response .
instead of that if we can make it better error code hadnling?
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions