refactor: Remove project rules

This commit is contained in:
Petr Mironychev
2026-06-11 13:36:23 +02:00
parent 2c9475cddf
commit 05fe38e289
45 changed files with 1333 additions and 299 deletions

View File

@@ -310,6 +310,15 @@ ContextData makeValidationContext()
Message asst;
asst.role = QStringLiteral("assistant");
{
ContentBlockEntry th;
th.kind = ContentBlockEntry::Kind::Thinking;
th.thinking = QStringLiteral("reasoning");
th.signature = QStringLiteral("sig");
asst.blocks.append(th);
ContentBlockEntry rth;
rth.kind = ContentBlockEntry::Kind::RedactedThinking;
rth.signature = QStringLiteral("sig");
asst.blocks.append(rth);
ContentBlockEntry t;
t.kind = ContentBlockEntry::Kind::Text;
t.text = QStringLiteral("hi");
@@ -516,9 +525,7 @@ void JsonPromptTemplate::prepareRequest(QJsonObject &request, const ContextData
}
bool JsonPromptTemplate::buildFullRequest(
QJsonObject &request,
const ContextData &context,
bool /*thinkingEnabled*/) const
QJsonObject &request, const ContextData &context) const
{
return mergeRenderedBody(request, renderBody(context));
}