[BUG] Vertex AI embeddings use bad API url
Description
I'm trying to set up memory using vertexai embeddings as described here.
I see in the logs:
2025-04-25 22:17:00 - HTTP Request: POST https://us-central1-aiplatform.googleapis.com/v1/projects/PROJECT-ID/locations/us-central1/publishers/goole/models/textembedding-gecko:predict "HTTP/1.1 401 Unauthorized"
It appears that there's a typo in the API url ('goole' instead of 'google'). I can't find the location of this error.
Steps to Reproduce
- Create an agent
- Create a crew using:
crew = Crew(
agents=...,
tasks=...,
process=Process.sequential,
memory=True,
embedder={
"provider": "vertexai",
"config": {
"model": 'textembedding-gecko',
"project_id": "PROJECT-ID",
"region": "us-central1"
}
},
)
Expected behavior
I expect a correct call to the google API
Screenshots/Code snippets
N/A
Operating System
Other (specify in additional context)
Python Version
3.12
crewAI Version
0.114.0
crewAI Tools Version
No idea. It doesn't have a version file
Virtual Environment
Venv
Evidence
See above
Possible Solution
I don't.
Additional context
N/A
@JasperHG90 I think the problwm is with the chormadb version which is being used at this moment,
Can you try updating the chroma db version once? and retry this.
Current chromadb version -> 0.5.23
Latest chromadb version available -> 1.0.7
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.