Method: tunedModels.patch

Updates a tuned model.

HTTP request

PATCH https://generativelanguage.googleapis.com/v1beta/{tunedModel.name=tunedModels/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
tunedModel.name

string

Output only. The tuned model name. A unique name will be generated on create. Example: tunedModels/az2mb0bpw6i If displayName is set on create, the id portion of the name will be set by concatenating the words of the displayName with hyphens and adding a random portion for uniqueness. Example: displayName = "Sentence Translator" name = "tunedModels/sentence-translator-u3b7m"

Query parameters

Parameters
updateMask

string (FieldMask format)

Required. The list of fields to update.

This is a comma-separated list of fully qualified names of fields. Example: "user.displayName,photo".

Request body

The request body contains an instance of TunedModel.

Response body

If successful, the response body contains an instance of TunedModel.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/generative-language.tuning

For more information, see the Authentication Overview.