mkht / PSOpenAI

PowerShell module for OpenAI API.
MIT License
41 stars 11 forks source link

Make params properties more concise #7

Closed potatoqualitee closed 7 months ago

potatoqualitee commented 7 months ago

Starting in PowerShell 3.0, " = $true" is no longer required.

Small change, but nicely de-clutters. Optional, of course. Both ways work.

mkht commented 7 months ago

Frankly, this may be a matter of preference. 😅 I respect your suggestion. Thanks.

potatoqualitee commented 7 months ago

It's true 😅 Many people from the PS v2 days seem to prefer the explicit $true. I started coding in PS more often when it was v3 and liked the conciseness of none of it. Thank you for the merge! I will also address the other PR shortly.