Problem/Motivation

VertexProvider::embeddings does not post to a complete URL, it only includes the path in the request. It looks like VertexProvider::chat does post against a complete URL.

Steps to reproduce

Try to generate embeddings data with the Vertex provider, get something like:

cURL error 6: Could not resolve host: projects (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for projects/redacted/locations/us-east4/publishers/google/models/text-embedding-005:predict

Proposed resolution

Update VertexProvider::embeddings to replicate what VertexProvider::chat does and calculate the full URL using the location.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lpeabody created an issue. See original summary.

lpeabody’s picture

Assigned: lpeabody » Unassigned
Status: Active » Needs review
StatusFileSize
new1.1 KB

yce made their first commit to this issue’s fork.

lpeabody’s picture

Status: Needs review » Reviewed & tested by the community

Tested locally and confirmed working.

mxr576’s picture

cspell is failing, has to be fixed before merge

  • yce committed 21e58324 on 1.1.x
    Issue #3530443 by lpeabody, yce: All embeddings requests are failing
    
yce’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.