Skip to content

Commit

Permalink
Added author doc
Browse files Browse the repository at this point in the history
  • Loading branch information
YanSte committed Dec 17, 2024
1 parent 3ffec16 commit 7a1fc5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydantic_ai_slim/pydantic_ai/models/mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,8 @@ def _map_content(content: MistralOptionalNullable[MistralContent]) -> str | None
return result


# Adapted from https://github.com/KillianLucas/open-interpreter/blob/5b6080fae1f8c68938a1e4fa8667e3744084ee21/interpreter/utils/parse_partial_json.py
# MIT License
def _repair_json(s: str) -> dict[str, Any] | list[Any] | None:
"""Attempt to parse a given string as JSON."""
try:
Expand Down

0 comments on commit 7a1fc5e

Please sign in to comment.