You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PowerShell allows for the definition of aliases for commands and parameters, greatly facilitating the usage habits of different users. In this module, we have fully utilized this feature, defining aliases for the main commands and parameters.
Tip
These aliases have intelligent sense prompts when you type them in the PowerShell window. You can type one or two characters and then press the tab key to complete them.
Commands and Aliases
Command
Alias
Notes
New-ChatGPTConversation
chat, chatgpt, gpt
This command can be used to instantly start ChatGPT on your desktop (if no prompt parameter is provided), or it can also generate text directly by specifying the prompt parameter (instead of entering chat mode). Semantically, I recommend using the alias gpt to refer to scenarios of generating text directly.
New-ImageGeneration
image, dall
This command is used to generate images using the DALL-E-3 model.
Parameters and Aliases
New-ChatGPTConversation
Parameter
Alias
Notes
api_key
key, token, accesstoken, access_token
API key
endpoint
None
Service endpoint
model
engine, deployment
Model, or deployment name
system
None
System command
prompt
None
User-specified or input, default parameter, can be unspecified, e.g., gpt “What is the capital of China?” is equivalent to gpt -prompt "What is the capital of China?", it can also be passed from a preceding pipeline, such as "What is the capital of China"| gpt
config
settings
Custom settings like max_tokens, temperature, etc., can be passed as a hashtable, e.g., @{max_tokens=1024;temperature=0.1}
context
variables
Context, this is used to dynamically pass data in system commands or user specifications, similar to variables, can be passed as a hashtable, e.g., @{name="chenxizhang";age=20}
headers
None
Custom header parameters, seldom used, certain special models may require this value, also in a hashtable format, e.g., @{name=value}
outFile
out
Output file
json
None
Whether to output text in JSON format
functions
None
Function list, this will be automatically recognized and invoked by GPT.
New-ImageGeneration
Parameter
Alias
Notes
api_key
key, token, accesstoken, access_token
API key
endpoint
None
Service endpoint, only needed when using Azure OpenAI service
prompt
None
User-specified or input, default parameter, need not specify the parameter name, e.g., image “A boy running with a dog in a park” is equivalent to image -prompt "A boy running with a dog in a park", it can also be passed from a preceding pipeline, such as "A boy running with a dog in a park" | image
azure
None
Indicates whether the Azure OpenAI service is being used
size
None
Image size options, three available sizes
outFile
out
Output file
environment
env
Only needed when using Azure OpenAI service to specify the environment name
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
PowerShell allows for the definition of aliases for commands and parameters, greatly facilitating the usage habits of different users. In this module, we have fully utilized this feature, defining aliases for the main commands and parameters.
Tip
These aliases have intelligent sense prompts when you type them in the PowerShell window. You can type one or two characters and then press the
tab
key to complete them.Commands and Aliases
chat
,chatgpt
,gpt
gpt
to refer to scenarios of generating text directly.image
,dall
Parameters and Aliases
New-ChatGPTConversation
key
,token
,accesstoken
,access_token
engine
,deployment
variables
out
New-ImageGeneration
key
,token
,accesstoken
,access_token
out
env
Beta Was this translation helpful? Give feedback.
All reactions