projects

Exposes an OpenAI-compatible endpoint for chat completions.

post/v1/{+endpoint}/chat/completions

Path parameters

endpointstring required

Required. The name of the endpoint requested to serve the prediction. Format: projects/{project}/locations/{location}/endpoints/{endpoint}

Request body

contentTypestring

The HTTP Content-Type header value specifying the content type of the body.

datastring byte

The HTTP request/response body as raw binary.

extensionsobject[]

Application specific response metadata. Must be set in the first response for streaming APIs.

Response

Successful response

Changes

No recorded changes to this endpoint across all 1 revision of this API.