forked from phoenix/litellm-mirror
Merge pull request #4266 from BerriAI/litellm_gemini_image_url
Support 'image url' to vertex ai / google ai studio gemini models
This commit is contained in:
commit
0c2c02ba8d
9 changed files with 140 additions and 143 deletions
|
@ -971,3 +971,14 @@ class TranscriptionResponse(OpenAIObject):
|
|||
except:
|
||||
# if using pydantic v1
|
||||
return self.dict()
|
||||
|
||||
|
||||
class GenericImageParsingChunk(TypedDict):
|
||||
# {
|
||||
# "type": "base64",
|
||||
# "media_type": f"image/{image_format}",
|
||||
# "data": base64_data,
|
||||
# }
|
||||
type: str
|
||||
media_type: str
|
||||
data: str
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue