fix(bedesten): suggest yargi-cli as fallback in 429 message

When the Bedesten API rate-limits us, point the model at the local
yargi-cli tool (https://github.com/saidsurucu/yargi-cli) so the user
has a working alternative while waiting out the limit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
saidsurucu
2026-05-08 20:30:49 +03:00
co-authored by Claude Opus 4.7
parent 8f04010c57
commit 4521e1de85
+6
View File
@@ -1198,6 +1198,9 @@ For best results, use exact phrases with quotes for legal terms."""),
"message": (
"Bedesten API rate limit aşıldı (HTTP 429 Too Many Requests). "
"Lütfen kısa bir süre bekleyip aramayı tekrar deneyin. "
"Alternatif olarak yargi-cli aracını kullanabilirsiniz: "
"https://github.com/saidsurucu/yargi-cli "
"(kullanım talimatları için repo README'sini okuyun)."
),
}
logger.exception("Error in tool 'search_bedesten_unified'")
@@ -1231,6 +1234,9 @@ async def get_bedesten_document_markdown(
message = (
"Bedesten API rate limit aşıldı (HTTP 429 Too Many Requests). "
"Lütfen kısa bir süre bekleyip belgeyi tekrar talep edin. "
"Alternatif olarak yargi-cli aracını kullanabilirsiniz: "
"https://github.com/saidsurucu/yargi-cli "
"(kullanım talimatları için repo README'sini okuyun)."
)
if retry_after:
message += f" Retry-After: {retry_after}"