Skip to content

馃悶 Installation issue - Unable to recognize internal command聽#7

Open

Description

@schaveyt

I was able to complete the installation, or so I thought. To sanity check. I performed the command shown in the readme.

#  q print my local ip
New-OpenAIChat : The term 'New-OpenAIChat' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At C:\Program Files\WindowsPowerShell\Modules\PShell-AI\0.2.3\Public\q.ps1:18 char:57
+ ... t = New-Agent -Instructions $instructions -LLM(New-OpenAIChat -model  ...
+                                                    ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (New-OpenAIChat:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Get-AgentResponse : The term 'Get-AgentResponse' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At C:\Program Files\WindowsPowerShell\Modules\PShell-AI\0.2.3\Public\q.ps1:21 char:35
+         $agentResponse = $agent | Get-AgentResponse $prompt
+                                   ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-AgentResponse:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException


Follow up, Enter to copy & quit, Ctrl+C to quit.
> :

The script was install in admin mode.
The query was run in both admin and user mode.

Thoughts?

Activity

  1. dfinke commented on Nov 2, 2024

    @dfinke
    Owner

    Looks like the required module PSAI did not get installed.

  2. the-mentor commented on Nov 25, 2024

    @the-mentor

    @schaveyt did installing the PSAI module solve your issue ?

    Install-Module PSAI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions