Models in SourceCraft Code Assistant

Warning

This feature is only available in Visual Studio Code.

Model configuration profiles allow you to create and switch between different Code Assistant sets of settings.

Warning

The default configuration profile includes a powerful code model by Yandex. Its use is limited by the Quotas.

Having multiple configuration profiles allows you to quickly switch between different AI providers, models, and settings without having to reconfigure each time you want to modify your setup.

Configuration profiles may include:

  • AI providers (Yandex Cloud, OpenAI, Anthropic, OpenRouter, Glama, etc.).
  • API keys and authentication data.
  • Model selection (o3-mini-high, Claude 3.7 Sonnet, DeepSeek R1, etc.).
  • Temperature settings to control response randomness.
  • Computing budgets.
  • Provider-specific settings.
  • Configuration editing via diffs.
  • Rate limit settings.

Note that available settings vary depending on your provider and model. Each provider offers different configuration options, and even within a single provider, different models may support different ranges of options or features.

Creating and managing profiles

Creating a profile

  1. In the chat's top panel, click Settings.
  2. Click next to the Profile selector.
  3. Enter a name for the new profile and click Create Profile.
  4. Configure the profile settings:
    • Select an API Provider.

    • Enter the API Key.

      Note

      API keys are securely stored in VSCode Secret Storage and are never exposed in plain text.

    • Select a Model.

    • Set the Rate limit for this profile. The default value is 0 (disabled), which is suitable for most users. If needed, you can set a minimum time (in seconds) between API requests for a specific profile to manage costs or avoid provider limits.

    • Configure the model settings, such as temperature (Use custom temperature).

Switching between profiles

You can switch between profiles in the following ways:

  • In the Code Assistant settings:

    1. In the chat's top panel, click Settings.
    2. Under Profile, select the required profile.
  • In the chat's bottom menu, open the drop-down list of model configuration profiles and select the profile.

Pinning and sorting profiles

The drop-down list of model configuration profiles supports pinning profiles for quick access:

  1. Hover over any profile in the drop-down list.

  2. To add the profile to your pinned list, click .

    You can unpin the profile by clicking again.

Pinned profiles are displayed at the top of the drop-down list, sorted alphabetically.

Unpinned profiles are displayed below the divider, also sorted alphabetically.

Editing and deleting profiles

  1. In the chat's top panel, click Settings.

  2. Under Profile, select the required profile.

  3. Edit your profile settings.

    To delete a profile, click next to it.

    To rename a profile, click next to it.

    Note

    You cannot delete a single profile.

In the chat's top panel, click and select Modes. You can explicitly link a specific configuration profile with a specific mode. This system also automatically memorizes which profile you last used with each mode, streamlining your workflow.

See also