ZIm/crates/language_model/src
Ben Brandt 9427833fdf
Distinguish between missing models and registries in error messages (#32678)
Consolidates configuration error handling by moving the error type and
logic from assistant_context_editor to language_model::registry.

The registry now provides a single method to check for configuration
errors, making the error handling more consistent across the agent panel
and context editor.

This also now checks if the issue is that we don't have any providers,
or if we just can't find the model.

Previously, an incorrect model name showed up as having no providers,
which is very confusing.

Release Notes:

- N/A
2025-06-13 10:31:52 +00:00
..
model language_model: Remove CloudModel enum (#31322) 2025-05-24 02:04:51 +00:00
fake_provider.rs More resilient eval (#32257) 2025-06-09 18:07:22 +00:00
language_model.rs More resilient eval (#32257) 2025-06-09 18:07:22 +00:00
rate_limiter.rs More resilient eval (#32257) 2025-06-09 18:07:22 +00:00
registry.rs Distinguish between missing models and registries in error messages (#32678) 2025-06-13 10:31:52 +00:00
request.rs Pass up intent with completion requests (#31710) 2025-05-29 20:43:12 +00:00
role.rs language_model: Remove dependencies on individual model provider crates (#25503) 2025-02-24 16:41:35 -05:00
telemetry.rs telemetry_events: Rename AssistantEvent to AssistantEventData (#28133) 2025-04-04 19:28:32 -04:00