Utils
Various utility functions.
Functions:
-
sanitize_json_completion
–Return only content inside the first pair of triple backticks if they are present.
sanitize_json_completion(completion)
Return only content inside the first pair of triple backticks if they are present.
Source code in tapeagents/utils.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|