ZIm/crates/language_model
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
..
src Distinguish between missing models and registries in error messages (#32678) 2025-06-13 10:31:52 +00:00
Cargo.toml language_model: Remove CloudModel enum (#31322) 2025-05-24 02:04:51 +00:00
LICENSE-GPL Extract completion provider crate (#14823) 2024-07-19 13:35:34 -04:00