mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 23:32:25 +00:00
serialize binary data fix
This commit is contained in:
parent
0bb28cf20a
commit
48df492a44
2 changed files with 4 additions and 6 deletions
|
|
@ -27,6 +27,9 @@ class _URLOrData(BaseModel):
|
|||
return values
|
||||
return {"url": values}
|
||||
|
||||
class Config:
|
||||
json_encoders = {bytes: lambda v: str("binary data")}
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class ImageContentItem(_URLOrData):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue