Monday, April 21, 2025
HomePowershellAsserting AI Shell Preview 2

Asserting AI Shell Preview 2


What’s New in AI Shell Preview 2?

We’re excited to announce the Preview 2 launch of AI Shell! With this replace you possibly can count on
the next enhancements:

  • Improved help for Azure PowerShell
  • Broader help for third social gathering OpenAI-compatible fashions
  • Refactored code pattern for creating an Ollama agent
  • Improved native command error dealing with
  • A neater approach to deploy Azure OpenAI situations
  • Further bug fixes

Improved help for Azure PowerShell

The enhancements to the azure agent are designed to cut back friction when managing Azure assets
with the Azure CLI and PowerShell. The agent now gives deeper integration with Azure PowerShell,
making it simpler to make use of AI-created Azure PowerShell scripts.

  • The /exchange command now helps Azure PowerShell. The agent walks you thru alternative of
    parameter values in generated Azure PowerShell responses.
  • The agent now help Azure PowerShell authentication utilizing the Join-AzAccount command.
    Beforehand, the agent solely supported Azure CLI authentication.

Broader help for third social gathering OpenAI-compatibles fashions

With this launch, the openai-gpt agent extends help to 3rd social gathering fashions that observe the
OpenAI API specs, permitting for a extra versatile AI expertise. Many of those fashions are open
supply instruments for working SLMs and LLMs regionally. The openai-gpt agent nows helps the next
extra fashions:

To make use of these fashions, you solely have to configure the endpoint, key and mannequin title within the agent
config file. The next openai.brokers.config file accommodates instance configurations for 2 of
the brand new AI suppliers.

{
    "GPTs": [
        {
          "Name": "gpt-deepseek",
          "Description": "A GPT instance using DeepSeek v3.",
          "Endpoint": "https://api.deepseek.com",
          "ModelName": "deepseek-chat",
          "Key": "<your-deepseek-api-key>",
          "SystemPrompt": "You are a helpful assistant."
        },

        {
          "Name": "gpt-gemini",
          "Description": "A GPT instance using Google Gemini.",
          "Endpoint": "https://generativelanguage.googleapis.com/v1beta/openai/",
          "ModelName": "gemini-1.5-flash",
          "Key": "<your-gemini-api-key>",
          "SystemPrompt": "You are a helpful assistant."
        }
    ]

    "Lively": "gpt-deepseek"
}

Improved native command error dealing with

Resolve-Error (alias fixit) now makes use of the display scraper API on Home windows to seize the error
output of native instructions. This permits AI Shell to supply higher decision of error messages that
come from native instructions fairly than from PowerShell.

Resolve Error demo

Ollama agent enhancements

We refactored the instance code for the agent ollama. This instance gives the essential construction
that you should utilize to construct out your personal agent. The refactored code now makes use of the OllamaSharp
library and add the flexibility to configure the agent utilizing settings information.

The ollama agent isn’t shipped with AI Shell however you possibly can construct it your self. See the directions
within the regionally construct the repo part of the README. Thanks @kborowinski on GitHub for
this contribution!

Instruments for simple deployment of Azure OpenAI situations

We added a Bicep template that deploys an Azure OpenAI occasion in seconds. Utilizing the template is
a lot sooner than manually creating an occasion within the Azure portal. This template consists of
documentation with step-by-step directions.

Further bug fixes

There are lots of bug fixes on this launch. For a whole listing of modifications, see the changelog.

How one can get AI Shell Preview 2

Use the next command in PowerShell 7 to put in or improve AI Shell:

Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-aishell.ps1') }"

For extra data, see Set up AI Shell.

Routinely begin AI Shell

One piece of suggestions we frequently hear is: How can I’ve AI Shell mechanically begin up after I open
Home windows Terminal?

It’s simple! Simply add Begin-AIShell to your PowerShell profile script. Right here’s how:

  1. Open your profile within the textual content editor of your selection.
  2. Add the next code to the tip of the file:
    if ($PSVersionTable.PSVersion -ge ([version]'7.4.6') -and
      (Get-Course of -Id $pid).Mother or father.Identify -eq 'WindowsTerminal') {
       Begin-AIShell
    }

Now, AI Shell will mechanically begin whenever you open Home windows Terminal.

NOTE

AI Shell solely works with Home windows Terminal and requires PowerShell 7.4.6 or increased.

In case you need assistance making a profile scripts, see about_Profiles.

Strive it out and share your suggestions

We’d love to listen to your suggestions as we proceed enhancing AI Shell. Be a part of the dialogue in our
GitHub Points and tell us how AI Shell helps your automation workflows.

Keep tuned for future updates as we carry extra AI-powered capabilities to your CLI expertise. 🚀

Thanks!

Steven Bucher and Dongbo Wang

AI Shell Workforce

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments