We’re excited to share the newest preview launch of AI Shell that features new options and
enhancements based mostly in your suggestions. This launch focuses on bettering the consumer expertise by
bettering entry to Azure OpenAI deployments, enhancements to the Invoke-AIShell
command, and
expanded compatibility with macOS.
MacOS help enhancements
We’ve made vital enhancements to the macOS aspect automotive expertise with iTerm2. Beforehand, the
aspect automotive expertise was unreliable and didn’t help the /code submit
command. Now you might have a extra
dependable expertise with characteristic parity along with your expertise on Home windows. For this expertise you
must run PowerShell 7 in iTerm2. For extra details about PowerShell 7 on macOS, see
Putting in PowerShell on macOS.
Assist for Microsoft Entra ID
To maintain password and keys safe, we’ve added help for Entra ID authentication to to Azure OpenAI
situations. Now you may entry your Azure OpenAI useful resource with out storing keys within the configuration
file. The next instance reveals how one can configure Entra ID authentication:
{
// Declare GPT situations.
"GPTs": [
// Declaration of an Azure OpenAI instance with EntraID authentication
{
"Name": "ps-az-entraId",
"Description": "A GPT instance with expertise in PowerShell scripting using Entra ID authentication.",
"Endpoint": "<Your Endpoint>",
"Deployment": "<Your Deployment Name>",
"ModelName": "<Your Model Name>",
"AuthType": "EntraID",
"SystemPrompt": "You are a helpful and friendly assistant with expertise in PowerShell scripting and command line."
}
],
// Specify the default GPT occasion to make use of for consumer question.
"Energetic": "ps-az-entraId"
}
That is the hierarchy of credentials that AI Shell will use to authenticate to Azure OpenAI:
EnvironmentCredential
WorkloadIdentityCredential
ManagedIdentityCredential
SharedTokenCacheCredential
VisualStudioCredential
AzureCliCredential
AzurePowerShellCredential
AzureDeveloperCliCredential
InteractiveBrowserCredential
For extra info on what these explicit credentials are, please see the
DefaultAzureCredential reference.
Invoke-AIShell command additions
We’ve added extra parameters to the Invoke-AIShell
command to permit for simpler use of the
aspect pane with out leaving the left aspect of the display.
-PostCode
– This parameter means that you can submit code generated from the aspect pane to the linked
PowerShell session. It reduces the necessity to change between the aspect pane and terminal to run the
/code submit
command.-CopyCode
– This parameter means that you can copy code from the aspect pane with out utilizing the
/code copy
command.-Exit
– This parameter means that you can exit the aspect pane with out utilizing the/exit
command.
These new parameters will let you use your terminal usually. You may inject AI generated instructions
with out cluttering your most important buffer and preserve all the small print and descriptions within the aspect pane. This
is an effective way to make use of AI Shell as aspect by aspect shell assistant! Coupled with PSReadLine Predictive
IntelliSense, you may shortly and simply use AI Shell in your regular shell workflow.
Phi Silica agent
We’ve added a brand new experimental agent known as Phi Silica. This agent makes use of the built-in Phi Silica
mannequin included with the newest Copilot+ PCs, permitting you to have an offline expertise with AI
Shell.
Observe
This agent isn’t shipped with the default set up of AI
Shell. To make use of this agent, it’s essential clone the repo and construct the code. Comply with the directions at
Domestically Constructing AI Shell.
This experimental AI supplier is a proof of idea that’s nonetheless underneath improvement. You must solely
use it for testing. Count on breaking adjustments in future releases.
Further minor enhancements
Listed here are a couple of extra enhancements which were made on this launch:
- Up to date mannequin info to help newest OpenAI fashions (#368)
- Add /clear as an alias to the command /cls to clear console in AIShell (#370)
- Replace set up script to put in the AIShell module on macOS too (#374)
- Enhanced mannequin administration and system immediate integration in OllamaAgent (#351) (Thanks
@cnupy!)
To see the total checklist of adjustments, try the changelog within the launch web page.
The right way to set up AI Shell Preview 4
To put in the newest model of AI Shell, run the next command in your PowerShell terminal:
Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-aishell.ps1') }"
As normal we might love so that you can attempt AI Shell and supply suggestions in our GitHub repository.
Thanks a lot!
AI Shell Crew
Steven Bucher & Dongbo Wang