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:
Krish Dholakia 2024-06-18 20:39:25 -07:00 committed by GitHub
commit 0c2c02ba8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 140 additions and 143 deletions

View file

@ -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