Log in
Log into community
Welcome to Portkey Forum
New post
View all posts
Related posts
Was this helpful?
π
π
π
Powered by
Hall
Active
Updated 2 weeks ago
0
Follow
Handling Retries: Native or Code-Driven Approach?
Handling Retries: Native or Code-Driven Approach?
Active
0
Follow
k
koishore
2 weeks ago
Β·
is there a way to natively trigger a retry if this happens randomly or should i just have a retry mechanism in the code itself?
V
k
4 comments
Share
Open in Discord
V
Vrushank | Portkey
2 weeks ago
This one would require Guardrail π - a simple retry only works on cases when there's an error code.
V
Vrushank | Portkey
2 weeks ago
You could put up a regex guardrail that looks for this specific phrase in the outputs and then retries the request if it is detected
k
koishore
2 weeks ago
Gotcha! too late to implement that right now, so gonna call it a night, but will bug you guys with more questions tomorrow! Going live on prod with yet another prompt on friday!
k
koishore
2 weeks ago
π¦
Add a reply
Sign up and join the conversation on Discord
Join on Discord