Skip to content

Commit

Permalink
fix: remove additional message in Ollama Auto Chat template
Browse files Browse the repository at this point in the history
  • Loading branch information
Palm1r committed Dec 23, 2024
1 parent 7dee6f6 commit 63f0900
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions templates/Ollama.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,6 @@ class OllamaAutoChat : public LLMCore::PromptTemplate

void prepareRequest(QJsonObject &request, const LLMCore::ContextData &context) const override
{
QJsonArray messages = request["messages"].toArray();

QJsonObject newMessage;
newMessage["role"] = "user";
newMessage["content"] = context.prefix;
messages.append(newMessage);

request["messages"] = messages;
}
QString description() const override { return "template will take from ollama modelfile"; }
};
Expand Down

0 comments on commit 63f0900

Please sign in to comment.