Skip to content

Commit

Permalink
Remvoe extra middleware output wrapper tags
Browse files Browse the repository at this point in the history
  • Loading branch information
xwjdsh authored and lyricat committed Apr 11, 2023
1 parent 88a346e commit dadd7b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/middleware/botastic_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ func (m *botasticSearch) Process(ctx context.Context, opts any, input string) (s
}
}

return fmt.Sprintf("[context-begin]\n%s\n[context-end]\n", strings.Join(arr, "\n")), nil
return strings.Join(arr, "\n"), nil
}
2 changes: 1 addition & 1 deletion service/middleware/intent_recognition.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ The possible intents should be one of following. If you have no confident about
return "", nil
}

return fmt.Sprintf("%s\n\n[intents-begin]\n%s\n[intents-end]\n", prompt, strings.Join(options.Intents, "\n")), nil
return fmt.Sprintf("%s\n%s", prompt, strings.Join(options.Intents, "\n")), nil
}

0 comments on commit dadd7b9

Please sign in to comment.