Method: projects.locations.endpoints.chat.completions

Exposes an OpenAI-compatible endpoint for chat completions.

Endpoint

post https://{endpoint}/v1beta1/{endpoint}/chat/completions

Where {service-endpoint} is one of the supported service endpoints.

Path parameters

endpoint string

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

Request body

The request body contains an instance of HttpBody.

Response body

If successful, the response is a generic HTTP response whose format is defined by the method.