mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-04-24 03:00:15 -04:00
chore: update formatOptions to include search options display
### CHANGES - Add search option status to `formatOptions` - Include `SearchLocation` in formatted output if specified
This commit is contained in:
@@ -76,6 +76,12 @@ func (c *Client) formatOptions(opts *common.ChatOptions) string {
|
||||
if opts.ModelContextLength != 0 {
|
||||
builder.WriteString(fmt.Sprintf("ModelContextLength: %d\n", opts.ModelContextLength))
|
||||
}
|
||||
if opts.Search {
|
||||
builder.WriteString("Search: enabled\n")
|
||||
if opts.SearchLocation != "" {
|
||||
builder.WriteString(fmt.Sprintf("SearchLocation: %s\n", opts.SearchLocation))
|
||||
}
|
||||
}
|
||||
|
||||
return builder.String()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user