parse_jsonl_with_embedded_newlines

This commit is contained in:
Ishaan Jaffer 2025-11-06 16:05:12 -08:00
parent bdc4969526
commit 21757af83d

View file

@ -1,7 +1,7 @@
import io
import json
from os import PathLike
from typing import Optional
from typing import List, Optional
from litellm._logging import verbose_logger
from litellm.types.llms.openai import FileTypes, OpenAIFilesPurpose
@ -16,7 +16,7 @@ class InMemoryFile(io.BytesIO):
self.content_type = content_type
def parse_jsonl_with_embedded_newlines(content: str) -> list[dict]:
def parse_jsonl_with_embedded_newlines(content: str) -> List[dict]:
"""
Parse JSONL content that may contain JSON objects with embedded newlines in string values.