Skip to content

Commit

Permalink
trying to fix a weird bug
Browse files Browse the repository at this point in the history
  • Loading branch information
potatoqualitee committed Jun 27, 2024
1 parent 18cd47b commit 07e59cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions public/Invoke-HelpChat.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -161,21 +161,21 @@ function Invoke-HelpChat {
## User Question
$msg"
} elseif (-not $NoYell) {
$msg = $msg + "`r`nOutput in plain-text. NOT markdown."
$msg = $msg + "`r`nOutput in plain-text. Markdown is forbidden."
# lol look, i'm desperate
$msg = $msg + "`r`nUSE YOUR RETRIEVAL DOCUMENTS!!!"
}

$null = Add-ThreadMessage -ThreadId $thread.id -Role user -Message $msg

if ($agent.tool_resources.file_search.vector_store_ids.count -ne 0) {
$vfsid = $agent.tool_resources.file_search.vector_store_ids
$vfsid = $agent.tool_resources.file_search.vector_store_ids | Select-Object -First 1
}

$params = @{
Stream = $false
Message = $msg
VectorStoresForFileSearch = $vfsid
VectorStoresForFileSearch = ($vfsid | Select-Object -First 1)
MaxCompletionTokens = 2048
Assistant = $agent.id
}
Expand Down
2 changes: 1 addition & 1 deletion public/New-ModuleAssistant.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function New-ModuleAssistant {
Name = $assistant
Model = $Model
UseFileSearch = $true
VectorStoresForFileSearch = $vectorinfo.Id
VectorStoresForFileSearch = ($vectorinfo.Id | Select-Object -First 1)
Metadata = @{ tag = "PSHelp.Copilot" }
}

Expand Down

0 comments on commit 07e59cb

Please sign in to comment.