@@ -94,7 +94,7 @@ class FileContent:
9494 """
9595 The file content of a chat message.
9696
97- :param base64_file : A base64 string representing the file.
97+ :param base64_data : A base64 string representing the file.
9898 :param mime_type: The MIME type of the file (e.g. "application/pdf").
9999 Providing this value is recommended, as most LLM providers require it.
100100 If not provided, the MIME type is guessed from the base64 string, which can be slow and not always reliable.
@@ -232,7 +232,7 @@ print(user_message)
232232>> > _role = < ChatRole.USER : ' user' > ,
233233>> > _content = [
234234>> > FileContent(
235- >> > base64_datta = ' JVBERi0...' ,
235+ >> > base64_data = ' JVBERi0...' ,
236236>> > mime_type = ' application/pdf' ,
237237>> > filename = ' 2309.08632' ,
238238>> > extra = {}
@@ -251,7 +251,7 @@ print(user_message.texts)
251251
252252print (user_message.file)
253253>> > FileContent(
254- >> > base64_datta = ' JVBERi0...' ,
254+ >> > base64_data = ' JVBERi0...' ,
255255>> > mime_type = ' application/pdf' ,
256256>> > filename = ' 2309.08632' ,
257257>> > extra = {}
0 commit comments