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:
6
chat.go
6
chat.go
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user