ZIm/crates/language_model
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
..
src Make language model deserialization more resilient (#31311) 2025-05-28 12:06:07 -04: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