topchester-ai 0.40.0 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.mjs
CHANGED
|
@@ -5215,18 +5215,21 @@ function buildPromptInput(request, config) {
|
|
|
5215
5215
|
prompt: request.prompt
|
|
5216
5216
|
};
|
|
5217
5217
|
const providerOptions = buildPromptCacheProviderOptions();
|
|
5218
|
-
return {
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
}] : [], {
|
|
5223
|
-
role: "user",
|
|
5224
|
-
content: [{
|
|
5225
|
-
type: "text",
|
|
5226
|
-
text: request.prompt,
|
|
5218
|
+
return {
|
|
5219
|
+
messages: [...request.system ? [{
|
|
5220
|
+
role: "system",
|
|
5221
|
+
content: request.system,
|
|
5227
5222
|
providerOptions
|
|
5228
|
-
}]
|
|
5229
|
-
|
|
5223
|
+
}] : [], {
|
|
5224
|
+
role: "user",
|
|
5225
|
+
content: [{
|
|
5226
|
+
type: "text",
|
|
5227
|
+
text: request.prompt,
|
|
5228
|
+
providerOptions
|
|
5229
|
+
}]
|
|
5230
|
+
}],
|
|
5231
|
+
allowSystemInMessages: true
|
|
5232
|
+
};
|
|
5230
5233
|
}
|
|
5231
5234
|
function buildPromptCacheProviderOptions() {
|
|
5232
5235
|
return { openaiCompatible: { cache_control: { type: "ephemeral" } } };
|
|
@@ -13802,4 +13805,4 @@ function formatDryRunSyncStatus(status) {
|
|
|
13802
13805
|
//#endregion
|
|
13803
13806
|
export { runTopchesterCli as t };
|
|
13804
13807
|
|
|
13805
|
-
//# sourceMappingURL=cli-
|
|
13808
|
+
//# sourceMappingURL=cli-DCJZpvPV.mjs.map
|