Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(agents-api): Patch unexpected response from litellm (finish_reaso…
…n) (#894) <!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add function to handle 'eos' finish reasons in litellm responses and reformat print statements in `codec.py`. > > - **Behavior**: > - Add `patch_litellm_response()` in `litellm.py` to convert 'eos' finish reasons to 'stop'. > - Apply `patch_litellm_response()` to `model_response` in `acompletion()`. > - **Misc**: > - Reformat print statements in `serialize()` and `deserialize()` in `codec.py` for readability. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=julep-ai%2Fjulep&utm_source=github&utm_medium=referral)<sup> for 653b8f3. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
- Loading branch information