Skip to content

Commit efc7ed8

Browse files
feat: add vertexai inference provider
Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
1 parent b535695 commit efc7ed8

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

distribution/Containerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ RUN pip install \
1414
datasets>=4.0.0 \
1515
fastapi \
1616
fire \
17+
google-cloud-aiplatform \
1718
httpx \
1819
ibm_watsonx_ai \
20+
litellm \
1921
matplotlib \
2022
mcp>=1.8.1 \
2123
nltk \

distribution/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ You can see an overview of the APIs and Providers the image ships with in the ta
1515
| files | inline::localfs |
1616
| inference | inline::sentence-transformers |
1717
| inference | remote::bedrock |
18+
| inference | remote::vertexai |
1819
| inference | remote::vllm |
1920
| inference | remote::watsonx |
2021
| safety | remote::trustyai_fms |

distribution/build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ distribution_spec:
77
- provider_type: remote::bedrock
88
- provider_type: inline::sentence-transformers
99
- provider_type: remote::watsonx
10+
- provider_type: remote::vertexai
1011
vector_io:
1112
- provider_type: inline::milvus
1213
- provider_type: remote::milvus

distribution/run.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ providers:
4242
url: ${env.WATSONX_BASE_URL:=https://us-south.ml.cloud.ibm.com}
4343
api_key: ${env.WATSONX_API_KEY:=}
4444
project_id: ${env.WATSONX_PROJECT_ID:=}
45+
- provider_id: ${env.VERTEX_AI_PROJECT:+vertexai}
46+
provider_type: remote::vertexai
47+
config:
48+
project: ${env.VERTEX_AI_PROJECT:=}
49+
location: ${env.VERTEX_AI_LOCATION:=us-central1}
4550
vector_io:
4651
- provider_id: milvus
4752
provider_type: inline::milvus

0 commit comments

Comments
 (0)