Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions evaluators/contrib/galileo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

Integration package for Galileo Luna evaluator.

## Context-limit errors

If the model server rejects an input for exceeding its maximum context length,
the evaluator returns `metadata.error_code: context_limit`. The server still
redacts the error message. Clients can use this safe code to report an unsupported
input separately from transient evaluator failures without exposing internal error
details or retrying the same oversized input.

## Migrating from Luna2

The `galileo.luna2` evaluator ID has been removed. Existing controls that use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,12 @@ def _handle_error(
**self._base_metadata(),
"error_type": type(error).__name__,
}
# The server redacts error text, so retain this deterministic failure as
# a safe code that clients can distinguish from an evaluator outage.
if isinstance(error, RuntimeError) and error_detail.startswith(
"Input exceeds maximum length for Galileo model server:"
):
metadata["error_code"] = "context_limit"
if isinstance(error, httpx.HTTPStatusError):
metadata.update(_http_status_error_metadata(error))

Expand Down