crewAI icon indicating copy to clipboard operation
crewAI copied to clipboard

[BUG] Vertex AI embeddings use bad API url

Open JasperHG90 opened this issue 9 months ago • 1 comments

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

  1. Create an agent
  2. 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 avatar Apr 25 '25 20:04 JasperHG90

@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

Vidit-Ostwal avatar Apr 26 '25 07:04 Vidit-Ostwal

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.

github-actions[bot] avatar May 26 '25 12:05 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jun 01 '25 12:06 github-actions[bot]