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:
co-authored by
Claude Opus 4.7
parent
8f04010c57
commit
4521e1de85
@@ -1198,6 +1198,9 @@ For best results, use exact phrases with quotes for legal terms."""),
|
|||||||
"message": (
|
"message": (
|
||||||
"Bedesten API rate limit aşıldı (HTTP 429 Too Many Requests). "
|
"Bedesten API rate limit aşıldı (HTTP 429 Too Many Requests). "
|
||||||
"Lütfen kısa bir süre bekleyip aramayı tekrar deneyin. "
|
"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'")
|
logger.exception("Error in tool 'search_bedesten_unified'")
|
||||||
@@ -1231,6 +1234,9 @@ async def get_bedesten_document_markdown(
|
|||||||
message = (
|
message = (
|
||||||
"Bedesten API rate limit aşıldı (HTTP 429 Too Many Requests). "
|
"Bedesten API rate limit aşıldı (HTTP 429 Too Many Requests). "
|
||||||
"Lütfen kısa bir süre bekleyip belgeyi tekrar talep edin. "
|
"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:
|
if retry_after:
|
||||||
message += f" Retry-After: {retry_after}"
|
message += f" Retry-After: {retry_after}"
|
||||||
|
|||||||
Reference in New Issue
Block a user