mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
use litellm proxy with vertex ai sdk
This commit is contained in:
parent
f310ce541f
commit
0ea1f367d7
3 changed files with 233 additions and 6 deletions
|
@ -42,7 +42,6 @@ vertexai.init(
|
|||
api_endpoint=LITELLM_PROXY_BASE,
|
||||
credentials=credentials,
|
||||
api_transport="rest",
|
||||
request_metadata=[("Authorization", f"Bearer {LITELLM_PROXY_API_KEY}")],
|
||||
)
|
||||
|
||||
model = MultiModalEmbeddingModel.from_pretrained("multimodalembedding")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue