monsternlp / ullm

A unified interface for local Large Language Models(LLM) and online LLM providers.
5 stars 0 forks source link

Need Documentation for Image Type API Usage #5

Open methanal opened 1 week ago

methanal commented 1 week ago

The interface for using the "Type": "image" with the ullm API differs significantly compared to OpenAI. It is necessary to refer to the source code to understand how to use it properly. Could you please add documentation to clarify this?

Code comparison:

BTW, the design of ullm is very convenient and neat. I appreciate that I can choose to either provide a file path or submit my own encoded file data. I like it.

methanal commented 1 week ago

FYI

-    encoded_string = base64.b64encode(_buffer).decode('utf-8')
-    encoded_frames.append(encoded_string)
+    encoded_frames.append(_buffer.tobytes())

PR