Skip to content

Commit 42452cb

Browse files
committed
feat: use anthropic-version 2023-01-01 for better effect
1 parent 862efd2 commit 42452cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function buildHeader(apiKey) {
2020
"Accept": "application/json",
2121
"Content-Type": "application/json",
2222
"x-api-key": apiKey,
23-
"anthropic-version": "2023-06-01",
23+
"anthropic-version": "2023-01-01",
2424
};
2525
}
2626

@@ -127,7 +127,7 @@ function handleResponse(query, targetText, responseObj) {
127127
});
128128
return resultText;
129129
}
130-
resultText = targetText + currentResponse['completion'];
130+
resultText = currentResponse['completion'];
131131
query.onStream({
132132
result: {
133133
from: query.detectFrom,

0 commit comments

Comments
 (0)