-
Notifications
You must be signed in to change notification settings - Fork 758
Description
Describe the bug
Hi, I wanted to test copilot cli in powershell, when I issue
Copilot
I get
Supply values for the following parameters:
inputPrompt:
I paste my openai key then an error message is displayed
Invoke-RestMethod: C:\Users\salam.SALAM\Documents\PowerShell\Modules\PowerShellAI\0.6.1\Public\Invoke-OpenAIAPI.ps1:70
Line |
70 | Invoke-RestMethod @params
| ~~~~~~~~~~~~~~~~~~~~~~~~~
| { "error": { "message": "The model \u0060text-davinci-003\u0060 has been deprecated, learn more here:
| https://platform.openai.com/docs/deprecations", "type": "invalid_request_error", "param": null,
| "code": "model_not_found" } }
Write-Codeblock: C:\Users\salam.SALAM\Documents\PowerShell\Modules\PowerShellAI\0.6.1\Public\copilot.ps1:107
Line |
107 | Write-Codeblock -Text $runnable -ShowLineNumbers -SyntaxHighl …
| ~~~~~~~~~
| Cannot bind argument to parameter 'Text' because it is an empty string.
Run the code? You can also choose additional actions
[Y] Yes [E] Explain [C] Copy [Q] Quit [?] Help (default is "Q"):
Affected version
same error when I use --versionn
Steps to reproduce the behavior
Run PS 7
Issue Copilot
paste openai key
Expected behavior
Return copilot results
Additional context
win 10 64
PS 7