yandexcloud
python package installed.
ai.languageModels.user
role.
Next, you have two authentication options:
- IAM token.
You can specify the token in a constructor parameter
iam_token
or in an environment variableYC_IAM_TOKEN
. - API key
You can specify the key in a constructor parameter
api_key
or in an environment variableYC_API_KEY
.
model_uri
parameter, see the documentation for more details.
By default, the latest version of text-search-query
is used from the folder specified in the parameter folder_id
or YC_FOLDER_ID
environment variable.