@mate_tsaava/pr-review 1.0.0 → 1.0.2
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/llm/claude.js +6 -1
- package/package.json +1 -1
package/dist/llm/claude.js
CHANGED
|
@@ -80,6 +80,10 @@ export class ClaudeAdapter {
|
|
|
80
80
|
role: "user",
|
|
81
81
|
content: userPrompt,
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
role: "assistant",
|
|
85
|
+
content: "{",
|
|
86
|
+
},
|
|
83
87
|
],
|
|
84
88
|
});
|
|
85
89
|
if (this.verbose) {
|
|
@@ -99,7 +103,8 @@ export class ClaudeAdapter {
|
|
|
99
103
|
console.log(content.text);
|
|
100
104
|
console.log("=".repeat(80) + "\n");
|
|
101
105
|
}
|
|
102
|
-
|
|
106
|
+
// Prepend "{" since we used prefill
|
|
107
|
+
return this.parseResponse("{" + content.text);
|
|
103
108
|
}
|
|
104
109
|
catch (error) {
|
|
105
110
|
lastError = error instanceof Error ? error : new Error(String(error));
|