chore: remove any type

This commit is contained in:
Dallin Romney 2026-01-13 12:25:34 -08:00
parent 1bfb72edf3
commit fa5bea1241

View file

@ -80,7 +80,10 @@ function isConnectionError(errorMessage: string): boolean {
/**
* Checks if the error indicates a context length issue (non-retryable)
*/
export function isContextLengthError(error: any): boolean {
export function isContextLengthError(error: unknown): boolean {
if (!(error instanceof Error)) {
return false;
}
const errorMessage = error.message?.toLowerCase() || "";
if (errorMessage.includes("invalid_request_error")) {