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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3530443-embeddings-not-submitting.patch | 1.1 KB | lpeabody |
Issue fork ai_provider_google_vertex-3530443
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
Comment #2
lpeabody commentedComment #5
lpeabody commentedTested locally and confirmed working.
Comment #6
mxr576cspell is failing, has to be fixed before merge
Comment #8
yce commented