Method: projects.locations.endpoints.chat.completions

Exposes an OpenAI-compatible endpoint for chat completions.

Endpoint

post https://{service-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/openapi

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.