File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
code365scripts.openai/Public Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ function New-ChatCompletions {
322322 $function_args = $tool.function.arguments | ConvertFrom-Json
323323 $tool_response = Invoke-Expression (" {0} {1}" -f $tool.function.name , (
324324 $function_args.PSObject.Properties | ForEach-Object {
325- " -{0} {1}" -f $_.Name , $_.Value
325+ " -{0} ' {1}' " -f $_.Name , $_.Value
326326 }
327327 ) -join " " )
328328
Original file line number Diff line number Diff line change @@ -620,7 +620,7 @@ function New-ChatGPTConversation {
620620 $function_args = $tool.function.arguments | ConvertFrom-Json
621621 $tool_response = Invoke-Expression (" {0} {1}" -f $tool.function.name , (
622622 $function_args.PSObject.Properties | ForEach-Object {
623- " -{0} {1}" -f $_.Name , $_.Value
623+ " -{0} ' {1}' " -f $_.Name , $_.Value
624624 }
625625 ) -join " " )
626626
@@ -672,7 +672,7 @@ function New-ChatGPTConversation {
672672 $function_args = $tool.function.arguments | ConvertFrom-Json
673673 $tool_response = Invoke-Expression (" {0} {1}" -f $tool.function.name , (
674674 $function_args.PSObject.Properties | ForEach-Object {
675- " -{0} {1}" -f $_.Name , $_.Value
675+ " -{0} ' {1}' " -f $_.Name , $_.Value
676676 }
677677 ) -join " " )
678678
You can’t perform that action at this time.
0 commit comments