voytas75 / PSAOAI

The module is a powerful tool designed to interact with Azure OpenAI Services.
MIT License
0 stars 1 forks source link

Parameter set cannot be resolved using the specified named parameters #5

Closed voytas75 closed 1 hour ago

voytas75 commented 2 hours ago
invoke-psaoaichatCompletion -usermessage (Get-Content C:\path\file.txt | out-string) -SystemPromptFileName "C:\path2\Systemprompt.txt"

produces

Invoke-PSAOAIChatCompletion : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1
+ invoke-psaoaichatCompletion -usermessage (Get-Content C:\path\file. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Invoke-PSAOAIChatCompletion], ParameterBindingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,Invoke-PSAOAIChatCompletion
voytas75 commented 1 hour ago

The Parameter set cannot be resolved using the specified named parameters. error typically means that the parameters provided to the function don't match any of the defined parameter sets within the function definition. This can occur when a combination of parameters is used that is not allowed together according to the function's parameter sets.