ZIm/crates/language_model/src
Richard Feldman 00fd045844
Make language model deserialization more resilient (#31311)
This expands our deserialization of JSON from models to be more tolerant
of different variations that the model may send, including
capitalization, wrapping things in objects vs. being plain strings, etc.

Also when deserialization fails, it reports the entire error in the JSON
so we can see what failed to deserialize. (Previously these errors were
very unhelpful at diagnosing the problem.)

Finally, also removes the `WrappedText` variant since the custom
deserializer just turns that style of JSON into a normal `Text` variant.

Release Notes:

- N/A
2025-05-28 12:06:07 -04:00
..
model language_model: Remove CloudModel enum (#31322) 2025-05-24 02:04:51 +00:00
fake_provider.rs Show progress as the agent locates which range it needs to edit (#31582) 2025-05-28 12:32:54 +00:00
language_model.rs language_models: Fetch Zed models from the server (#31316) 2025-05-23 23:00:35 +00:00
rate_limiter.rs Change cloud language model provider JSON protocol to surface errors and usage information (#29830) 2025-05-04 17:37:42 +00:00
registry.rs Default to fast model first for commit messages (#31385) 2025-05-26 10:37:44 +02:00
request.rs Make language model deserialization more resilient (#31311) 2025-05-28 12:06:07 -04: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