class Anthropic::Vertex::Client
def build_request(req, opts)
-
(Hash{Symbol=>Object})
-
Options Hash:
(**opts)
-
:timeout
(Float, nil
) -- -
:max_retries
(Integer, nil
) -- -
:extra_body
(Hash{Symbol=>Object}, nil
) -- -
:extra_headers
(Hash{String=>String, nil}, nil
) -- -
:extra_query
(Hash{String=>Array
) --, String, nil}, nil -
:idempotency_key
(String, nil
) -- -
:model
(Anthropic::Converter, Class, nil
) -- -
:page
(Class, nil
) -- -
:unwrap
(Symbol, nil
) -- -
:body
(Object, nil
) -- -
:headers
(Hash{String=>String, nil}, nil
) -- -
:query
(Hash{String=>Array
) --, String, nil}, nil -
:path
(String, Array
) -- -
:method
(Symbol
) --
Parameters:
-
opts
(Hash{Symbol=>Object}
) -- . -
req
(Hash{Symbol=>Object}
) -- .
Other tags:
- Private: -
def build_request(req, opts) q_to_vertex_specs!(req) t_input = super request_input[:headers]["Authorization"] orization = Google::Auth.get_application_default(["https://www.googleapis.com/auth/cloud-platform"]) est_input[:headers] = authorization.apply(request_input[:headers]) t_input