dspy
dspy copied to clipboard
feature(dspy): Added support for Google Cloud Vertex AI
Added support for Google Cloud Vertex AI.
This includes -
- Support for specifying GCP project, location and region during init.
- Support for passing custom credentials - passed through to
vertexai.init
- Restrict candidate_count to 1 for Gemini model, otherwise set to 4 (Bison model supports 4)
- Updates to make sure
inspect_history
works as expected.
The discussion about Vertex AI is ongoing here. Could you also refer to this PR?
Thanks @nbqu - the link you've provided links to this PR itself. Is there another one?
oops, there was a typo on the link! #616 covers vertex AI. Can you check it too?
@amithmathew Does the merged #616 cover this?