1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-12-02 20:22:52 +00:00

no prompt should mean no prompt

This commit is contained in:
2025-11-06 03:59:21 +01:00
parent f7db78c08f
commit 9a98bd3b83

View File

@@ -181,11 +181,9 @@ func (r *Request) Parse() (*openrouter.ChatCompletionRequest, error) {
if prompt != "" {
prompt += "\n\n" + InternalGeneralPrompt
} else {
prompt = InternalGeneralPrompt
}
request.Messages = append(request.Messages, openrouter.SystemMessage(prompt))
request.Messages = append(request.Messages, openrouter.SystemMessage(prompt))
}
if model.Tools && r.Tools.Search && env.Tokens.Exa != "" && r.Iterations > 1 {
request.Tools = GetSearchTools()