Skip to content

Latest commit

 

History

History

models

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Scripts

This is a repository of useful scripts for managing the chat models for your Tabnine Enterprise installation.

Notes

Use of these scripts may require curl and jq.

get_id_token.sh

A script to fetch an ID token with your username and password (does not work for SSO).

Notes:

  • The Organization ID can be found in your Helm Chart values file.
  • Your password may require escaping for certain special characters (`!).
Usage: get_id_token.sh [required]

  Required:
    --organization-id <string>     Organization ID     example: ee4b8bd9-1cd4-4c7b-89b0-e1e9a00cf320
    --password <string>            Password            example: Tabnine!23
    --url <string>                 Server URL          example: https://tabnine.com
    --username <string>            Username            example: admin@tabnine.com
Example:

  get_id_token.sh \
    --organization-id ee4b8bd9-1cd4-4c7b-89b0-e1e9a00cf320 \
    --password 'password123' \
    --url "https://tabnine.com" \
    --username admin@tabnine.com

set_team_models.sh

A script to set the available chat models on a team-by-team basis.

Usage: set_team_models.sh [required]

  Required:
    --id-token <string>          ID token                        example: eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXV...
    --model-id <string>          Model IDs, comma separated      example: 1,2,3

        Name                       ID
        -----------------------------
        Claude 3.5 Sonnet          0
        Claude 3.5 Sonnet (v2)     1
        Claude 3.7                 2
        Gemini 2.0 Flash           3
        GPT-3.5 Turbo              4
        GPT-4 Turbo                5
        GPT-4o                     6
        GPT-4o mini                7
        Llama 3.1 405B             8
        Llama 3.1 70B              9
        Llama 3.3 70B              10
        Mistral 7B                 11
        Qwen 32B                   12
        Tabnine Protected          13

    --team-name <string>         Team name                       example: Tabnine Team (case sensitive)
                                                                    note: Use "default" for the default team

    --url <string>               Server URL                      example: https://tabnine.com
Example:

  set_team_models.sh \
    --id-token eyJhbGciOiJSUzUxMiIsInR5cCI6IkpXV... \
    --model-id 4,5,8 \
    --team-name "Tabnine Team" \
    --url "https://tabnine.com"